Operating Systems: Sync 9 Problem statements: –count = count+1;and count = count-1; –not indivisible statements –compile to: load reg, countload reg, count add reg, #1sub reg, #1 store reg, countstore reg, count –on a single-processor, can regard each instruction as indivisible –order of execution could be: load reg, count add reg, #1 load reg, count sub reg, #1 store reg, count store reg, count –on a multi-processor, processes could be executing simultaneously How can processes be organised to share memory and also synchronise?
{}