Assignment 4
Assignment 4
1. Compare First fit, Best fit and Worst fit memory allocation techniques .Suppose the
memory segments with sizes: 100, 300,500, and 600. Fit the following processes with
size 250, 150, 420, and 510 in the free segment using first-fit, best-fit and worst fit?
2. Consider a system with 3 page frames and the following page reference string: 1, 2, 3,
1, 4, 3, 2, 1, 5. Using First-Come, First-Served (FCFS), Optimal, and Least Recently
Used (LRU) page replacement algorithms, Find the number of page faults that occur.
5. Define demand paging in memory management. What are the steps required to handle
a page fault in demand paging?