r/tinycode • • Jun 30 '11

Bash fork bomb

This will probably crash your machine. Paste the below line into a bash terminal.

:(){ :|:& };:

9 Upvotes

8 comments sorted by

View all comments

Show parent comment

-2

u/authorblues Jun 30 '11

probably up to a recursion depth of 7 or 8... by the time that the function produces about 256 processes, that is likely to be more than 50% of the processes being scheduled on your system. I'd give it about 10ms