3 ms·
Threads are much cheaper to spawn compared to processes because threads share memory while forked processes are copy-on-write which requires updating the page t
by the8472 4y ago
Threads 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.