/*
* Without using anything but the calculator hanging off your belt,
* your VI quick reference card, and the LCD alarm chronograph
* mechanical pencil in your plastic pocket reinforce-omatic, describe
* in minute detail the output of this program. Expound in depth on
* the cultural and historical traditions behind every race condition
* involved, including insightful commentary on the personality quirks
* and religious practices of the parties responsible for each kernel
* bug you refer to in your explanation. Make sure to mention every
* operating system release in which your comments apply. Be concise
* and to the point. You may not blame it on the compiler. For extra
* credit, replace the fork() with vfork().
*
* -Don
*/
#include <stdio.h>
main()
{
printf("%d\n", foo() + (foo()<<1) + (foo()<<2) + (foo()<<3));
}
foo()
{
return(fork() ? 1 : 0);
}
Date: Sun, 1 Feb 87 21:37:25 PST From: fair@ucbarpa.berkeley.edu (Erik E. Fair) To: don@brillig.umd.edu Subject: Re: Essay question Cc: Hackers_Guild@ucbvax.berkeley.eduAh, I remember a perplexed Mike Karels looking at that at Ron's Party in Washington...
Erik