23 votes 23 votes A critical section is a program segment which should run in a certain amount of time which avoids deadlocks where shared resources are accessed which must be enclosed by a pair of semaphore operations, $P$ and $V$ Operating System gate1996 operating-system process-synchronization easy isro2008 + – Kathleen asked Oct 9, 2014 • edited Nov 21, 2018 by kenzou Kathleen 5.7k views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Shimpy Goyal commented Jun 20, 2015 reply Follow Share y not c & d both beacuse critical section alwz enclosed by a pair of semaphore operation P& V also .... 0 votes 0 votes Arjun commented Jun 20, 2015 reply Follow Share D is true only when semaphores are used. But semaphores are just one of the ways for managing critical sections. 18 votes 18 votes dadasomane commented Aug 8, 2018 reply Follow Share I am totally agree with you ( c and d) 0 votes 0 votes Please log in or register to add a comment.
Best answer 39 votes 39 votes There is no time guarantee for critical section. Critical section by default doesn't avoid deadlock. While using critical section, programmer must ensure deadlock is avoided. is the answer http://en.wikipedia.org/wiki/Critical_section 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. Gate Keeda answered Oct 9, 2014 • edited Jul 4, 2018 by kenzou Gate Keeda comment Share Follow See all 0 reply Please log in or register to add a comment.