02.03.2014 Views

SO-mod 9-Memoria Virtual - Facultad de Ingeniería - Universidad ...

SO-mod 9-Memoria Virtual - Facultad de Ingeniería - Universidad ...

SO-mod 9-Memoria Virtual - Facultad de Ingeniería - Universidad ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Uso <strong>de</strong>l Stack para registrar las Referencias a<br />

Páginas Más Recientes<br />

Secuencia <strong>de</strong> referencia<br />

stack<br />

antes <strong>de</strong> a<br />

stack<br />

<strong>de</strong>spués <strong>de</strong> b<br />

JRA © 2010<br />

Sistemas Operativos – <strong>Memoria</strong> <strong>Virtual</strong><br />

Algoritmos <strong>de</strong> Aproximación a LRU<br />

Bit <strong>de</strong> referencia. Con cada página se asocia un bit,<br />

inicialmente= 0<br />

JRA © 2010<br />

Cuando la página es referenciada el bit es puesto a 1.<br />

<br />

Reemplace aquella en la cual es 0 (si existe). No se<br />

conoce el or<strong>de</strong>n.<br />

Segunda oportunidad<br />

<br />

<br />

<br />

Necesita el bit <strong>de</strong> referencia.<br />

Reemplazo circular (Clock).<br />

Si la página a ser reemplazada (en or<strong>de</strong>n circular) tiene el<br />

bit <strong>de</strong> referencia = 1 entonces:<br />

Se pone el bir <strong>de</strong> referencia en 0.<br />

Se <strong>de</strong>ja la página en memoria.<br />

Se reemplaza la siguiente página (en el or<strong>de</strong>n circular),<br />

sujeta a las mismas reglas.<br />

Sistemas Operativos – <strong>Memoria</strong> <strong>Virtual</strong>

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

Saved successfully!

Ooh no, something went wrong!