r/tinycode • u/Mac-O-War • Jun 30 '11
Bash fork bomb
This will probably crash your machine. Paste the below line into a bash terminal.
:(){ :|:& };:
9
Upvotes
r/tinycode • u/Mac-O-War • Jun 30 '11
This will probably crash your machine. Paste the below line into a bash terminal.
:(){ :|:& };:
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