CS604 GDB Idea
CS604 GDB Idea

Basic Page Replacement

The previously discussed page-fault processing assumed that there would be free frames available on the free-frame list. Now the page-fault handling must be modified to free up a frame if necessary, as follows:

1) Find the location of the desired page on the disk, either in swap space or in the file system.
2) Find a free frame:
A. If there is a free frame, use it.
B. If there is no free frame, use a page-replacement algorithm to select an existing frame to be replaced, known as the victim frame.
C. Write the victim frame to disk. Change all related page tables to indicate that this page is no longer in memory.
3) Read in the desired page and store it in the frame. Adjust all related page and frame tables to indicate the change.
4) Restart the process that was waiting for this page.

Possibly Related Threads...
Thread Author Replies Views Last Post
  CS625 Assignment Idea Solution Spring 2019 Mishi Khan 0 51 05-30-2019, 02:38 AM
Last Post: Mishi Khan
  CS605 GDB Idea Solution Mishi Khan 0 640 02-08-2019, 01:25 AM
Last Post: Mishi Khan
  CS602 Assignment 2 Idea Solution Mishi Khan 1 712 02-02-2019, 03:29 PM
Last Post: ayeshanoor
  CS604 Assignment 2 Solution Mishi Khan 0 688 02-01-2019, 01:46 AM
Last Post: Mishi Khan
  CS614 Assignment 2 Idea Solution Mishi Khan 0 280 02-01-2019, 01:43 AM
Last Post: Mishi Khan
  CS604 GDB Solution Fall 2017 Admin 0 2,341 01-30-2018, 07:13 PM
Last Post: Admin
  CS604 Assignment 3 Solution Pakistani 2 2,396 07-26-2017, 06:17 PM
Last Post: Rubaisha(Moody Girl)
Lightbulb CS604 GDB 01 Discussion Halaa_Syed_NEW 1 850 07-18-2017, 07:44 PM
Last Post: Pakistani
  CS602 assignment solution idea 2016 Rubaisha(Moody Girl) 0 1,633 11-16-2016, 10:49 AM
Last Post: Rubaisha(Moody Girl)
  cs609 idea solution Rubaisha(Moody Girl) 0 1,033 05-12-2016, 09:03 PM
Last Post: Rubaisha(Moody Girl)

Users browsing this thread:
1 Guest(s)