OPERATING SYSTEMS 1 龚玲 lgong@sjtu.edu.cn
OPERATING SYSTEMS 龚玲 lgong@sjtu.edu.cn 1
Chapter 6:Process Synchronization
Chapter 6: Process Synchronization
REVIEW o Race Condition ohttp://wenku.baidu.com/course/study/77f1dcccda38376ba flfae94#665ea0c7aa00b52acfc7ca94
REVIEW Race Condition http://wenku.baidu.com/course/study/77f1dcccda38376ba f1fae94#665ea0c7aa00b52acfc7ca94
Goals for today o Background oThe Critical-Section Problem o Peterson's Solution o Synchronization Hardware
Goals for today Background The Critical-Section Problem Peterson’s Solution Synchronization Hardware
Background-Race Conditions o Two processes want to access shared memory at the same time. Spooler directory 4 abc out =4 5 Process A prog.c 6 prog.n in =7 Process B 5
Background-Race Conditions Two processes want to access shared memory at the same time. 5