Module 20: Multi-core Computing Multi-processor Scheduling
Lecture 40: Multi-core Computing Synchronization
A Possible Scenario
The producer and consumer processes may be scheduled in any order and may be preempted.
Consider the following sequence of statements
P1,
CSwitch
, C1, C2, C3,
CSwitch
, P2, P3.