2 ms·
> but it used to be that forking could be almost as efficient under Linux as starting a new thread in an existing process. That's because internally it's nearl
by cesarb 5y ago
> but it used to be that forking could be almost as efficient under Linux as starting a new thread in an existing process.
That's because internally it's nearly the same thing. Both forking and starting a new thread on Linux is a variant of the clone() system call, the only difference being which things are shared between parent and child.