This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full 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).
- Winter '11