4 ms·
This is a fork bomb: while (1) { fork(); } This will fork forever, creating children that fork forever, exhausting the system's resources. The
by OskarS 8y ago
This is a fork bomb:
while (1) {
fork();
}
This will fork forever, creating children that fork forever, exhausting the system's resources. The example in the article only ever has at most 2 processes, and they don't exhaust anything.
- glandium 8y agoNote yours is an exponential fork bomb: both parent and child processes keep forking.