Which of the following need not necessarily be saved on a context switch between processes?
(A) General purpose registers
(B) Translation look-aside buffer
(C) Program counter
(D) All of the above
Explanation: The values stored in registers, stack pointers and program counters are saved on context switch between the processes so as to resume the execution of the process.
There’s no need of saving the contents of TLB as it is invalidated after each context switch.
So, option (B) is correct
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.