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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Page replacement policy<br />

• A page replacement policy is required when there are no free pages and we need to select a page to<br />

replace<br />

• Optimal algorithm<br />

◾ Select the page for which the time until the next reference is furthest away …<br />

◾ Obviously, we cannot implement this policy without prior knowledge of future events<br />

◾ However, it is a useful policy against which more practical policies can be measured<br />

• Least Recently Used (LRU)<br />

◾ Replace the page in memory that was referenced furthest back in time<br />

◾ Exploits locality of reference<br />

◾ Near-optimal performance<br />

◾ Disadvantage: very expensive to implement<br />

175<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!