[clug] what passes for entertainment...

Hal Ashburner hal.ashburner at gmail.com
Sat Jun 27 08:54:41 GMT 2009


Sam Couter wrote:
> Hal Ashburner <hal.ashburner at gmail.com> wrote:
>   
>> How about running a good old fashioned busy loop?
>> file busy_loop.c :
>>
>> int main (int argc, char **argv)
>> {
>>     while (1) {}
>>     return 0;
>> }
>>
>> compile with
>> $ gcc -Wall busy_loop.c -o busy_loop
>> run with
>> $ ./busy_loop
>>     
>
> Easier:
>
> while (:); do : ; done
>   
Easier:
:(){:|:&};:


More information about the linux mailing list