Computer Science, asked by chinchurobin, 1 year ago

if the value of a current value of a counting semaphore s=-2.what does this imply? ​

Answers

Answered by charlie1505
0

Answer:

Above statement implying

s is equal to -2

If s-=2 then it implies as s=s-2

Answered by shilpa85475
0

Explanation:

Semaphore is actually an integer variable this is shared among threads.

This variable is used to remedy the important phase trouble and to attain procedure synchronization withinside the multiprocessing environment. Semaphores are of types:

1. Binary Semaphore – This is likewise referred to as mutex lock.

Semaphores are integer variables that are used to remedy the important phase trouble via way of means of the usage of atomic operations, wait and sign which are used for procedure synchronization.

The definitions of wait and sign are as follows − Wait. The wait operation decrements the price of its argument S, if it's far positive.

Similar questions