Changing Seats

Which of the following contribute to the overhead of a context switch in an operating system?

A

Allocating new heap memory

B

Kernel mode transition overhead

C

Saving and restoring CPU registers

D

Flushing TLB (Translation Lookaside Buffer)

E

Cache pollution (cold cache after switch)