CS604 GDB Idea
#1
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
  CS605 GDB Idea Solution Mishi Khan 0 35 02-08-2019, 01:25 AM
Last Post: Mishi Khan
  CS602 Assignment 2 Idea Solution Mishi Khan 1 86 02-02-2019, 03:29 PM
Last Post: ayeshanoor
  CS604 Assignment 2 Solution Mishi Khan 0 70 02-01-2019, 01:46 AM
Last Post: Mishi Khan
  CS614 Assignment 2 Idea Solution Mishi Khan 0 73 02-01-2019, 01:43 AM
Last Post: Mishi Khan
  CS604 MidTerm Past Paper Mishi Khan 0 210 12-22-2018, 08:23 PM
Last Post: Mishi Khan
  CS604 GDB Solution Fall 2017 Admin 0 1,746 01-30-2018, 07:13 PM
Last Post: Admin
  CS604 Assignment 3 Solution Pakistani 2 1,657 07-26-2017, 06:17 PM
Last Post: Rubaisha(Moody Girl)
Lightbulb CS604 GDB 01 Discussion Halaa_Syed_NEW 1 711 07-18-2017, 07:44 PM
Last Post: Pakistani
  CS602 assignment solution idea 2016 Rubaisha(Moody Girl) 0 1,401 11-16-2016, 10:49 AM
Last Post: Rubaisha(Moody Girl)
  cs609 idea solution Rubaisha(Moody Girl) 0 899 05-12-2016, 09:03 PM
Last Post: Rubaisha(Moody Girl)



Users browsing this thread:
1 Guest(s)