OPERATING SYSTEMS 1 龚玲 lgong@sjtu.edu.cn
OPERATING SYSTEMS 龚玲 lgong@sjtu.edu.cn 1
REVIEW o Semaphores o http://wenku.baidu.com/course/study/77f1dcccda38376ba flfae94#665ea0c7aa00b52acfc7ca94
REVIEW Semaphores http://wenku.baidu.com/course/study/77f1dcccda38376ba f1fae94#665ea0c7aa00b52acfc7ca94
Goals for today o Monitors o Deadlock
Goals for today Monitors Deadlock
Monitors o A high-level abstraction that provides a convenient and effective mechanism for process synchronization o Only one process may be active within the monitor at a time
Monitors A high-level abstraction that provides a convenient and effective mechanism for process synchronization Only one process may be active within the monitor at a time
Syntax of a monitor monitor monitor name /shared variable declarations initialization code (...) } public P1(··.){ } public P2(···){ } public Pn(···){
Syntax of a Monitor