Question discussion

Which of the following statement(s) is/are correct for context switching in Operating System?I. When a context switch occurs, the kernel sa…

3541Medium DSSSB TGT Computer Science 0 replies 2 views
0

Which of the following statement(s) is/are correct for context switching in Operating System?

I. When a context switch occurs, the kernel saves the context of the old process in its PCB (Process Control Block).

II. Context-Switch time is pure overhead, because the system does no useful work while switching.

  • ANeither I nor II
  • BOnly I
  • COnly II
  • DBoth I and II
Correct answer: D

Explanation

On a context switch the kernel saves the old process context in its PCB (I) and the switching time is pure overhead (II). Both are correct.

Discussion 0

Nobody has replied yet. Start the discussion!