3 ms·
Isn't spawning a POSIX thread the same thing?
by Thaxll 4y ago
Isn't spawning a POSIX thread the same thing?
- the8472 4y agoThreads are much cheaper to spawn compared to processes because threads share memory while forked processes are copy-on-write which requires updating the page tables for the parent and copying the kernel bookkeeping entries over to the child.