homework6_张翔_2018329621137 Version 0 |
|
👤 Author: by 2470994471qqcom 2020-11-05 09:53:01 |
wait(S)
{
while (S<=0);
S--;
}
The signal operation increments the value of its argument S.
signal(S)
{
S++;
}
Using semaphores to solve the producer-consumer problem
Please login to reply. Login