Central Queensland Univeristy
MyInfocom
Faculty of Informatics and Communication
You are here: 85349 -> Resources -> Lectures -> 6 -> 22
Search | Site Map
[ Questions or Comments ]
wait(S) { S.value = S.value -1; if (S.value <0) { add this process to S.L; block; } } signal(S) { S.value = S.value + 1; if (S.value <= 0) { remove a process P from S.L; wakeup(P); } }