Operating System, V9, Assignment 4
University of management and Technology
Name: ------------------------------ Session: Fall 2024
Roll No: ---------------------------- Total Marks: 20
Operating System V9, (CLO 3)
Task 1: Consider the following page reference string:
1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6.
How many page faults would occur by applying the following replacement algorithms,
assuming three and seven frames?
Remember that all frames are initially empty, so your first unique pages will cost one fault
each.
LRU replacement
FIFO replacement
Optimal replacement
Task 2: Consider the following page reference string:
7, 2, 3, 1, 2, 5, 3, 4, 6, 7, 7, 1, 0, 5, 4, 6, 2, 3, 0, 1.
Assuming demand paging with three frames, how many page faults would occur by applying
the following replacement algorithms?
LRU replacement
FIFO replacement
Optimal replacement