Forkbomb


Running this may cause a slight usability issue with your UNIX-based computer…

:(){ :|:& };:

So run it on a friend’s instead…

last pid: 19063;  load averages: 138.04, 65.15, 26.72

This is what’s known as a Fork Bomb, which is a process that spawns at least two clones of itself, which go on to spawn clones of themselves… repeat until no more processes can be spawned. Be careful when writing network applications that spawn helper processes to deal with connections (for example you’re doing a “Network Communication” module on your Software Engineering degree and decide to write a chat system), you can do rather bad things to the network.

Want to forkbomb a friend’s UNIX machine, but can’t remember that BASH stuff? Then do it in Perl which, weirdly for Perl, is totally readable…

fork while fork

See, you know your Perl code is doing evil things when it becomes human readable ;-)

About James

If this were the 80s I'd be sat in front of a C64 or Speccy, or taking VCRs apart.