Central Queensland Univeristy
MyInfocom
Faculty of Informatics and Communication
You are here: 85349 -> Resources -> Lectures -> 6 -> 28
Search | Site Map
[ Questions or Comments ]
wait( S1 ); C = C - 1; if (C<0) { signal( S1 ); wait( S2 ); } else signal( S1 );
wait( S1 ); C = C+1; if (C <= 0) signal( S2 ); signal( S1 );