From owner-freebsd-multimedia Sat Nov 10 10:46: 0 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from jupiter.linuxengine.net (jupiter.linuxengine.net [209.61.188.254]) by hub.freebsd.org (Postfix) with ESMTP id 7C1FB37B416 for ; Sat, 10 Nov 2001 10:45:58 -0800 (PST) Received: from jupiterweb.commercevault.com (jupiterweb.commercevault.com [209.61.179.16] (may be forged)) by jupiter.linuxengine.net (8.11.6/8.11.0) with ESMTP id fAAIm2n22610; Sat, 10 Nov 2001 12:48:02 -0600 Date: Sat, 10 Nov 2001 12:48:02 -0600 (CST) From: John Utz X-X-Sender: To: Erich Zigler Cc: t6nu , Subject: Re: Choppy picture with Sawfish+GNOME and fxtv In-Reply-To: <20011110101222.B85009@cerebro.superhero.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org i am utterly astounded that this works! On Sat, 10 Nov 2001, Erich Zigler wrote: > > type this hack into shell... and try fxtv again. (it did work for me :) > > echo "int main() { while(1) {} return 0;}" > hack.c && gcc hack.c -o hack && ./hack & > > Awesome it worked. Any idea why this works? :) > > Also, is it supposed to chew up 90%+ of the CPU? yup! this code is a permanent while loop. it has no function calls in it, so the OS is never free to choose to defer running the function so that it can run something else. (more or less! this is an overly simple explanation of multitasking :-) ) why hogging up the computer could possibly fix fxtv on sawfish is utterly incomprehensible. it's sort of like saying 'here put these huge bags of concrete in your honda, it will accelerate faster and give you a higher top speed'.... -- John L. Utz III john@utzweb.net Idiocy is the Impulse Function in the Convolution of Life To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message