Operating Systems Concepts - Engineering

Q1:

To avoid the race condition, the number of processes that may be simultaneously inside their critical section is

A 8

B 1

C 16

D 0

E None of the above

ANS:B - 1

In the case of process synchronisation, if we avoid race conditions then no two processes can enter in the critical section. If more than one process can enter the critical section then inconsistent results may come which cause race conditions.