Q12.Marks: +2.0UGC NET Paper 2: Computer Science 18th June 2024 Shift 1 (Cancelled)
The sequence of steps for a page replacement algorithm will be :
A. find a frame that is not currently being used
B. change the page table
C. use freed frame
D. no frame is free
E. free a frame
Choose the correct answer from the options given below :
1.D, A, E, B, C✓ Correct
2.E, B, A, C, D
3.B, E, A, D, C
4.D, E, B, A, C
Solution
The correct answer is D, A, E, B, C
Key PointsThe sequence of steps in a page replacement algorithm:
D. No frame is free: Check if there are no free frames available.
A. Find a frame that is not currently being used: If no free frame is available, identify a frame that can be replaced (one that is not currently in use).
E. Free a frame: If a frame is found that is not currently being used, free this frame by writing its contents to disk if necessary.
B. Change the page table: Update the page table to reflect the fact that the new page will be loaded into the freed frame.
C. Use freed frame: Finally, use the freed frame to load the new page.