wait
wait
wait
Code: 60 F5
Description: Wait (or P) on the semaphore pointed to by Areg. If the semaphore
count is greater than zero then the count is decremented and the process continues;
otherwise the current process is descheduled and added to the back of the
semaphore list.
Definition:
if (word[Areg @ s.Count] = 0)
{
Put process on back of semaphore list
Start next process
}
else
word′[Areg @ s.Count] ← word[Areg @ s.Count] − 1
Areg′
Breg′
Creg′
← undefined
← undefined
← undefined
Error signals: none
Comments:
Secondary instruction.
Instruction is a descheduling point.
See also: signal
197/212
®