lecture13-chapter05

lecture13-chapter05 - OperatingSystems Lecture12:...

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

View Full Document Right Arrow Icon
Operating Systems Lecture 12: Monitors. Message Passing. Readers/Writers. Anda Iamnitchi anda@cse.usf.edu 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
Roadmap Concurrency Mutual Exclusion: Hardware Support Semaphores Monitors Message Passing Readers/Writers Problem
Background image of page 2
Monitors The monitor is a programming language construct that provides equivalent functionality to that of semaphores and that is easier to control. Implicit mutual exclusion Synchronization via condition variables Implemented in a number of programming languages, including Concurrent Pascal, Pascal Plus, Modula 2, Modula 3, and Java.
Background image of page 3

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

View Full DocumentRight Arrow Icon
Main characteristics: 1. Local variables are accessible only by the monitor’s procedures and not by any external procedure. 2. A process enters the monitor by invoking one of its procedures. 3. Only one process may be executing in the monitor at a time; Structure of a Monitor
Background image of page 4
Synchronization Synchronisation achieved by condition variables within a monitor only accessible by the monitor. Operation on condition variables:
Background image of page 5

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

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

Page1 / 23

lecture13-chapter05 - OperatingSystems Lecture12:...

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

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