search
Log In
0 votes
2k views

In order to allow only one process to enter its critical section, binary semaphore are initialized to

  1. $0$
  2. $1$ 
  3. $2$
  4. $3$
in Operating System
recategorized by
2k views

2 Answers

0 votes
 
Best answer
In order to allow only one process to enter its critical section,generaly  we will take semaphore value as 1 as when it will enter in critical section it will down the semaphore value to zero so that no other process is able to down ,further the value of semaphore .

 (b) option ans.

selected by
0 votes
i think ans should be 1 .
when a process want to enter critical section it decrements value by 1 .
Now value becomes to zero. if another process try to enter critical section it goes to waiting queue.
 2 & 3 can not be possible value for binary semaphore it can contain only 0 & 1 possible value
Answer:

Related questions

0 votes
2 answers
1
1.5k views
Remote Computing Service involves the use of time sharing and _______. Multi-processing Interactive processing Batch processing Real-time processing
asked Sep 16, 2016 in Operating System makhdoom ghaya 1.5k views
1 vote
2 answers
2
484 views
_______ is one of pre-emptive scheduling algorithm. $RR$ $SSN$ $SSF$ Priority based
asked Sep 16, 2016 in Operating System makhdoom ghaya 484 views
1 vote
2 answers
3
481 views
Match the following : ... Codes : a-iii, b-iv, c-ii, d-i a-iv, b-iii, c-ii, d-i a-ii, b-iv, c-i, d-iii a-i, b-iv, c-iii, d-ii
asked Sep 16, 2016 in Operating System makhdoom ghaya 481 views
11 votes
1 answer
4
3.7k views
Semaphores synchronize critical resources to prevent deadlock synchronize critical resources to prevent contention are used to do I/O are used for memory management
asked Jun 10, 2016 in Operating System jothee 3.7k views
...