13.07.2015 Views

de un proceso

de un proceso

de un proceso

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

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

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

Escenarios <strong>de</strong> terminacióntratar_kill() { // aborta <strong>proceso</strong> P!=actualif (P->estado==BLOQUEADO) mover BCP <strong>de</strong> cola bloqueo a listosP->estado=TERMINADO;activar_int_SW_terminacion(P);... }int bloquear() {if (p_actual->estado==TERMINADO) return -1; ...cambio_contexto(....);if (p_actual->estado==TERMINADO) return -1; ... }leer_tuberia() {if (tuberia_vacia()) {ret=bloquear();if (ret==-1) {<strong>de</strong>jar estado coherente y fin_<strong>proceso</strong>()}....Diseño <strong>de</strong> Sistemas Operativos 93 Fernando Pérez Costoya (2008)

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

Saved successfully!

Ooh no, something went wrong!