edited by
5,623 views
23 votes
23 votes

A critical section is a program segment

  1. which should run in a certain amount of time
  2. which avoids deadlocks
  3. where shared resources are accessed
  4. which must be enclosed by a pair of semaphore operations, $P$ and $V$
edited by

1 Answer

Best answer
39 votes
39 votes
  1. There is no time guarantee for critical section.
     
  2. Critical section by default doesn't avoid deadlock. While using critical section, programmer must ensure deadlock is avoided. 
     
  3. is the answer
    http://en.wikipedia.org/wiki/Critical_section
     
  4. This is not a requirement of critical section. Only when semaphore is used for critical section management, this becomes a necessity. But, semaphore is just ONE of the ways for managing critical section. 
edited by
Answer:

Related questions

30 votes
30 votes
4 answers
1