Elective Operating System

Operating SystemPU Spring 2023

a) Consider the following page reference strings: 9, 3, 4, 5, 3,9, 6, 7. 3.9, 3, 4, 8, 7, 4, 3,9, 3, 4, 7. How many page faults would occur for each of the following page replacement algorithms…

15
  • a) Consider the following page reference strings: 9, 3, 4, 5, 3,9, 6, 7. 3.9, 3, 4, 8, 7, 4, 3,9, 3, 4, 7. How many page faults would occur for each of the following page replacement algorithms assuming 3 pages a frame? In each case calculate fault ratio.
  • i) Second Chance page replacement
  • ii) LRU page replacement
  • iii) FIFO page replacement
  • b) Define context switching Explain context switching by demonstrating a diagram that show how CPU switches from one process to another.
A worked answer is on its wayMeanwhile, read the Operating System notes for this topic.

Discussion

Loading…

More Operating System questions

All Operating System old questions