Operating Systems Concepts - Engineering

Q1:

A critical region is

A a program segment that has not been proved bug-free

B a program segment that often causes unexpected system crashes

C a program segment where shared resources are accessed

D one which is enclosed by a pair of P and V operations on semaphores

E none is the above

ANS:D - one which is enclosed by a pair of P and V operations on semaphores

C should be the Answer. Critical section is nothing but a "region" where there is data which is shared by many process. To deal with this and achieve synchronization and mutual exclusion semaphoroes are used.