3 ms·
A fork bomb will quickly take up your systems resources and invariably will force you to turn off your computer. A non-terminating loop will simply drag on for
by tinco 13y ago
A fork bomb will quickly take up your systems resources and invariably will force you to turn off your computer.
A non-terminating loop will simply drag on forever, stealing cycles whenever it gets the chance.
- Dylan16807 13y agoDragging on doing nothing is what I would call 'dumb'. Fork bombs actually do something, and pose interesting challenges.
- Someone 13y agoAlso: 1) an infinite loop will never use more than one CPU. Because of that, on almost any hardware less than 10 years old, normal users might barely notice an infinite loop that doesn't do I/O. A fork bomb, on the other hand, will try and create 2*N processes after N iterations, all of them competing on equal footing with your shell for CPU time and memory. 2) it is fairly easy to kill an infinite loop. Killing the explosion of processes that a fork bomb creates is a different thing. Between the time that you detect the process ID of a process to kill and the time you kill it, that process may have spawned a few new processes. More info at http://en.wikipedia.org/wiki/Fork_bomb#Defusing http://en.wikipedia.org/wiki/Fork_bomb#Defusing
- cdcarter 13y ago> A fork bomb will quickly take up your systems resources and invariably will force you to turn off your computer. A curious analogy for being alive...