Question 119Asked in DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)

An operating system completely releases the memory allocated to a process after the process transitions from which of the following states?

  1. ASleeping to ready
  2. BReady to running
  3. CRunning to terminated
  4. DRunning to sleeping
Show answerHide answer

Correct answer: (C) Running to terminated

Explanation

Only when a process moves from running to terminated (exit) does the OS reclaim all of its memory. In sleeping or ready states the process still exists and keeps its address space.

From DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 2 (12:30 PM)

This is question 119 of DSSSB TGT Computer Science PYQ, 25 Jun 2023, 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.