edited by
1,308 views

2 Answers

1 votes
1 votes
wait and signal operations are the two atomic operations performed on a semaphore.
0 votes
0 votes

Wait and signal are the atomic operation possible on semaphore….

Semaphores are integer variables that are used to solve the critical section problem by using two atomic operations, wait and signal that are used for process synchronization…..

Wait:

The wait operation decrements the value of its argument S if it is positive....

If S is negative or zero, then no operation is performed….

wait(S)

{

while (S<=0)

S--;

}

Signal:

The signal operation increments the value of its argument S….

 

signal(S)

 

{

S++;

}

So, (D) wait, signal ….

reshown by
Answer:

Related questions

1 votes
1 votes
2 answers
1
Arjun asked Nov 5, 2017
3,119 views
Which speed up could be achieved according to Amdahl's Law for infinte number of processes if $5\%$ of a program is sequential and the remaining part is ideally parallel?...
0 votes
0 votes
1 answer
2
Arjun asked Nov 5, 2017
2,551 views
Which of the given wireless technologies used in IoT, consumes the least amount of power?ZigbeeBluetoothWi-FiGSM/CDMA
0 votes
0 votes
2 answers
3
Arjun asked Nov 5, 2017
4,632 views
Which of the following is not a Clustering method?K-Means methodSelf Organizing feature map methodK- nearest neighbor methodAgglomerative method