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
  CS604 Assignment 2 Idea Solution Spring 2020 Ayra Suleman 0 124 06-11-2020, 03:57 AM
Last Post: Ayra Suleman
  CS604 Assignment 3 Solution Fall 2020 Ayra Suleman 0 735 01-26-2020, 02:16 AM
Last Post: Ayra Suleman
  CS614 GDB Idea Solution Fall 2020 Ayra Suleman 0 912 01-16-2020, 10:36 PM
Last Post: Ayra Suleman
  CS604 Assignment Solution Fall 2019 Ayra Suleman 0 613 11-17-2019, 02:06 PM
Last Post: Ayra Suleman
  CS615 GDB Idea Solution Spring 2019 Ayra Suleman 0 316 08-01-2019, 09:56 PM
Last Post: Ayra Suleman
  CS607 Assignment 3 Idea Solution 2019 Spring Ayra Suleman 0 317 07-31-2019, 12:41 AM
Last Post: Ayra Suleman
  CS604 Assignment 3 Solution Spring 2019 Ayra Suleman 0 322 07-26-2019, 07:12 PM
Last Post: Ayra Suleman
  CS625 Assignment Idea Solution Spring 2019 Mishi Khan 0 319 05-30-2019, 02:38 AM
Last Post: Mishi Khan
  CS605 GDB Idea Solution Mishi Khan 0 876 02-08-2019, 01:25 AM
Last Post: Mishi Khan
  CS602 Assignment 2 Idea Solution Mishi Khan 1 1,777 02-02-2019, 03:29 PM
Last Post: ayeshanoor



Users browsing this thread:
1 Guest(s)