Tema 3: MONITORES - Departamento de Lenguajes y Sistemas ...
Tema 3: MONITORES - Departamento de Lenguajes y Sistemas ...
Tema 3: MONITORES - Departamento de Lenguajes y Sistemas ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
2. Sincronización en Monitores<br />
2.1.4. Colas <strong>de</strong> condición con prioridad (cont.)<br />
Ejemplo: Reloj con alarma. El proc. llamador se retarda n unida<strong>de</strong>s <strong>de</strong><br />
tiempo.<br />
monitor <strong>de</strong>spertador;<br />
var ahora: integer; <strong>de</strong>spertar: condicion;<br />
procedure <strong>de</strong>spiertame (n: integer);<br />
var alarma: integer;<br />
{alarma := ahora + n; while ahora