Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2001 12:48:02 -0600 (CST)
From:      John Utz <john@utzweb.net>
To:        Erich Zigler <erichz@superhero.org>
Cc:        t6nu <chain@daemon.bsd.ee>, <multimedia@FreeBSD.ORG>
Subject:   Re: Choppy picture with Sawfish+GNOME and fxtv
Message-ID:  <Pine.LNX.4.33.0111101242530.22275-100000@jupiter.linuxengine.net>
In-Reply-To: <20011110101222.B85009@cerebro.superhero.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.33.0111101242530.22275-100000>