Code of the Day: Fork

It’s amazing that a good ol’ fork bomb can still provide hours of fun:

#include <unistd.h>

int main() { while (fork()) { fork(); } return 1; }

Add a sleep() in there somewhere for additional enjoyment/bewilderment, depending on who you are and who runs the machines you’re on.

Comments on this entry are closed.

  • Don’t forget a rand() (that came our rant() at first.. maybe that’s more accurate) to make it even more exciting.

    jon

  • Avoid some of the Camera forums if you hate camrea wars.It’s much much worse than Spectrum vs C64 arguments (which were mostly wrong, cos the Speccy was the best)For balance I’m a Canon user (as you know Chris), if I was to start again last year I probably would be a Nokin user. This year I am mostly happy with Canon. Anyway got far too much invested to change.

Previous Post:

Next Post: