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.

Implementación <strong>de</strong> hilos• BCP sólo contiene info. gral. <strong>de</strong>l <strong>proceso</strong> + lista <strong>de</strong> hilos• BCT (Bloque <strong>de</strong> Control <strong>de</strong> Hilo):– Info. específica <strong>de</strong>l hilo• estado, copia <strong>de</strong> regs., pilas <strong>de</strong> usuario y sistema, prioridad,p<strong>un</strong>tero a BCP <strong>de</strong>l <strong>proceso</strong>, etc.• Colas <strong>de</strong> listos y bloqueo contienen BCT en vez <strong>de</strong> BCP• Creación <strong>de</strong> <strong>un</strong> hilo:– Crear pila <strong>de</strong> usuario con argumento y llamada <strong>de</strong> fin <strong>de</strong> hilo– Crear pila <strong>de</strong>l sistema con dirección inicial <strong>de</strong>l hilo– Crear contexto inicial en BCT (Estado = LISTO)– Incluir BCT en cola <strong>de</strong> listos• Crear <strong>proceso</strong>: crea hilo implícitoDiseño <strong>de</strong> Sistemas Operativos 115 Fernando Pérez Costoya (2008)

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

Saved successfully!

Ooh no, something went wrong!