Re:Have I tattooed a syntax error on my arm?
by Someone on Tuesday January 21, 2014 @06:39PM
(#7099491)
Also: 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
Re:Have I tattooed a syntax error on my arm?
by cdcarter on Tuesday January 21, 2014 @07:00PM
(#7099587)
> 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...
Re:Have I tattooed a syntax error on my arm?
by Dylan16807 on Tuesday January 21, 2014 @06:28PM
(#7099430)
Dragging on doing nothing is what I would call 'dumb'. Fork bombs actually do something, and pose interesting challenges.
A non-terminating loop will simply drag on forever, stealing cycles whenever it gets the chance.