Question 176Asked in DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)

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

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.
  1. ANeither I nor II
  2. BOnly I
  3. COnly II
  4. DBoth I and II
Show answerHide answer

Correct answer: (D) Both I and II

Explanation

During a context switch the kernel saves the old process state in its PCB and loads the new one's. This switching time is pure overhead, since no useful work is done. Both are correct.

From DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM)

This is question 176 of DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.