22.11.2014 Views

Tema 3: MONITORES - Departamento de Lenguajes y Sistemas ...

Tema 3: MONITORES - Departamento de Lenguajes y Sistemas ...

Tema 3: MONITORES - Departamento de Lenguajes y Sistemas ...

SHOW MORE
SHOW LESS

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

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

2. Sincronización en Monitores<br />

2.4.2.Problema <strong>de</strong> los lectores/escritores sin priorida<strong>de</strong>s (FIFO).cont.<br />

procedure procesolector;<br />

{ while (true) {comenzarleer; leerdatos; fin leer;}<br />

procedure procesoescritor;<br />

{ while (true) { comenzarescribir; escribirdatos; finescribir }<br />

{cobegin<br />

procesolector; procesolector; ...<br />

procesoescritor; procesoescritor; ...<br />

coend; }

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

Saved successfully!

Ooh no, something went wrong!