Multiple choice

Which of the following situations requires the context switching in operating system?

  1. When the CPU needs in and out process from the memory

  2. When the switching needed from user mode to kernel mode

  3. When the CPU is interrupted to return data from a disk read

  4. All of the above

  5. Both (2) and (3)

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Yes, all of the above are the necessary conditions when there is a need of context switch in the operating system.