cs201-20111108b-2up - Monitors High-level synchronization...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: Monitors High-level synchronization construct that allows the safe sharing of an abstract data type among concurrent processes. type monitor-name = monitor variable declarations procedure entry P 1 ( ... ); begin ... end ; procedure entry P 2 ( ... ); begin ... end ; . . . procedure entry Pn ( ... ); begin ... end ; begin initialization code end . Operating System Concepts 6.40 Silberschatz and Galvin c 1998 Monitors (Cont.) To allow a process to wait within the monitor, a condition variable must be declared, as: var x,y : condition Condition variable can only be used with the operations wait and signal . The operation x . wait ; means that the process invoking this operation is suspended until another process invokes x . signal ; The x . signal operation resumes exactly one suspended process. If no process is suspended, then the signal operation has no effect. Operating System Concepts 6.41 Silberschatz and Galvin c 1998 Dining Philosophers Example type dining-philosophers...
View Full Document

This note was uploaded on 01/18/2012 for the course INFORMATIK 2011 taught by Professor Phanthuongcang during the Winter '11 term at Cornell University (Engineering School).

Page1 / 4

cs201-20111108b-2up - Monitors High-level synchronization...

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

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