2 Comments

Thanks abhinav for this. I was wondering does this mean that perf penatly gap between thread level context switch and process context switch has reduced ?

As I am assuming tlb/cahce are not getting flushed in process context switch given these are using process identifier as tag.

Expand full comment

Yes. I'd say so. However, when doing process context switching you are more likely to evict a few TLB entries and a few cache entries at the very minimum. Whereas in the case of threads, there is lesser probability of that happening if the application is well optimized.

Expand full comment