Practice free →
HomeGATE CSEcomputerscienceOperating Systems › Thread context switches are cheaper than process…

Thread context switches are cheaper than process context switches because

Athreads are written in a different programming language
Bthread switches need not flush TLB or change memory mappings
Cthreads use less RAM than processes
Dthread switches skip the PCB save-restore step
Answer & Solution
Correct answer: B. thread switches need not flush TLB or change memory mappings
Threads of the same process share the address space. Switching between them does not require flushing the TLB, changing page tables or reloading the memory map. A process switch does all of that, plus saves/restores the PCB. The savings make threads the go-to model for concurrency within an app.
Solve this in the app — GATE CSE practice & 24k+ MCQs →
Related questions