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.

2 thoughts on “Code of the Day: Fork”

  1. 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.

Comments are closed.