670 views
2 2 votes
suppose counting semaphore value is 5 can it be increased to 6

1 Answer

2 2 votes
We can perform two kind of operation on Sema[hores

WAIT(); This will decrement the value of semaphore by one.. Actually it means one more process in the way of occupying the critical section

 

SIGNAL():This will increment the value of semaphore by one.

Actually it means one more process in the way of leaving the critical section

Wait and Signal are sometime also reffered as P operation and V operation

So,one more signal operation will make this value 6
• edited by
Position:
Show:

Related questions

1 1 vote
2 2 answers
138
138 views
Tushal_Kumar asked Sep 21
138 views
Q4. A fast-food restaurant has four kinds of employees: (1) order takers, who take customers’ orders; (2)cooks, who prepare the food; (3) packaging specialists, who stuff...
0 0 votes
1 1 answer
152
152 views
DΛΞMON asked Sep 9
152 views
\begin{aligned}&\text { Q. Which of following is/are true statements. }\\&\text { A) Suppose we have } 3 \text { process P0 P1 P2 and we want to run all concurrently then...
6 6 votes
2 2 answers
330
330 views
GO Classes asked Aug 31
330 views
Which of the following data structures can be used by a file system to manage free disk blocks?Bitmap Inode Free-block linked list File Allocation Table, FAT I and II onl...
5 5 votes
1 1 answer
220
220 views
GO Classes asked Aug 31
220 views
A segmentation-based memory-management system maintains a shared segment table.Processes $P_1$ and $P_2$ both share segment $S$.Which of the following statements is incor...