Solucion Filosofos Chinos Semaforos

Solucion Filosofos Chinos Semaforos - Solucin 1 Procedure...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Procedure CH0; Begin Repeat P(Pa0); P(Pa1); come V(Pa0); V(Pa1); Until False; End; Procedure CH1; Begin Repeat P(Pa1); P(Pa2); come V(Pa1); V(Pa2); Until False; End; Procedure CH2; Begin Repeat P(Pa2); P(Pa3); come V(Pa2); V(Pa3); Until False; End; Procedure CH3; Begin Repeat P(Pa3); P(Pa4); come V(Pa3); V(Pa4); Until False; End; Procedure CH4; Begin Repeat P(Pa4); P(Pa0); come V(Pa4); V(Pa0); Until False; End; Solución 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Procedure CH0; Begin Repeat P(Pa0); P(Pa1); come V(Pa0); V(Pa1); Until False; End; Procedure CH1; Begin Repeat P(Pa1); P(Pa2); come V(Pa1); V(Pa2); Until False; End; Procedure CH2; Begin Repeat P(Pa2); P(Pa3); come V(Pa2); V(Pa3); Until False; End; Procedure CH3; Begin Repeat P(Pa3); P(Pa4); come V(Pa3); V(Pa4); Until False; End; Procedure CH4; Begin Repeat P(Pa4); P(Pa0); come V(Pa4); V(Pa0); Until False; End; Solución 1 Esta solución cae en Deadlock si todos los procesos piden su primer palillo al mismo tiempo.
Background image of page 2
Procedure CH0; Begin Repeat P(Pa0); P(Pa1); come V(Pa0);
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/30/2011 for the course SISTEMAS O 1 taught by Professor Garza during the Spring '11 term at ITESM.

Page1 / 4

Solucion Filosofos Chinos Semaforos - Solucin 1 Procedure...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online