01.06.2014 Views

Concurrent Systems II - Bad Request - Trinity College Dublin

Concurrent Systems II - Bad Request - Trinity College Dublin

Concurrent Systems II - Bad Request - Trinity College Dublin

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Page replacement policy<br />

• Of the page frames available for replacement, which one should be replaced when a page fault occurs?<br />

• Basic scheme<br />

◾ A page fault occurs<br />

◾ Find a free frame<br />

◾ If there was a free frame, then use it<br />

◾ Otherwise if all the frames are used<br />

• select a victim frame using a page replacement policy<br />

• write the victim frame to disk and update the page table entries accordingly<br />

◾ Read the new page from disk into the selected page frame<br />

◾ Allow the faulting process to resume<br />

• Note<br />

◾ Replacing a victim page frame potentially requires both a read and a write<br />

174<br />

<strong>Trinity</strong> <strong>College</strong> <strong>Dublin</strong><br />

© Mike Brady 2007–2009

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!