3 ms·
hm, if in posix systems a thread inherit "The entire virtual address space of the parent is replicated in the child" that means actually that context switch bet
by k2k9 8y ago
hm, if in posix systems a thread inherit "The entire virtual address space of the parent is replicated in the child" that means actually that context switch between threads among one process is not that costly (TLB cache stays intact for example). Am i right?
- hyperman1 8y agoIt is surely faster than windows. But I don't think the TLB stays intact: You have to redo all page tables etc.., as every memory write will cause a copy on-write (if one process writes to memory, it gets a copy of the memory and the other process never sees the write)