4 ms·
When you do a fork in a loop, the child process wakes up in the same loop.
by 2sk21 7y ago
When you do a fork in a loop, the child process wakes up in the same loop.
- tus88 7y agoYes, but the way you write child processes is to check the return of fork() and then break out of whatever the parent was doing and go into a child function.