13.07.2015 Views

de un proceso

de un proceso

de un proceso

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

Desbloqueo <strong>de</strong> <strong>un</strong> <strong>proceso</strong>• Cuando se cumpla el evento se produce el <strong>de</strong>sbloqueo– No implica cambio <strong>de</strong> contexto• Dentro <strong>de</strong> llamada o rutina <strong>de</strong> int. que causa <strong>de</strong>sbloqueoSi (condición) Desbloquear(cola <strong>de</strong> evento);• F<strong>un</strong>ción Desbloquear– invocada <strong>de</strong>s<strong>de</strong> rutina <strong>de</strong> int. o <strong>de</strong>s<strong>de</strong> llamadaDesbloquear (cola <strong>de</strong> bloqueo) {Seleccionar <strong>proceso</strong> en la cola (primero si política FIFO);Estado <strong>de</strong> <strong>proceso</strong> elegido = LISTO;Prohibir interrupciones;Mover BCP <strong>de</strong> elegido <strong>de</strong> cola <strong>de</strong>l evento a cola <strong>de</strong> listos;Restaurar estado <strong>de</strong> interrupciones previo; }Diseño <strong>de</strong> Sistemas Operativos 74 Fernando Pérez Costoya (2008)

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

Saved successfully!

Ooh no, something went wrong!