written 8.6 years ago by | • modified 8.6 years ago |
Mumbai University > COMPS > Sem 5 > Operating System
Marks: 5 M
Year: Dec 2014
written 8.6 years ago by | • modified 8.6 years ago |
Mumbai University > COMPS > Sem 5 > Operating System
Marks: 5 M
Year: Dec 2014
written 8.6 years ago by |
The various parts of a code for Critical section are:
A solution to a critical section problem must satisfy three conditions;
a) Mutual Exclusion: If a process A is executing in its critical section, then no other processes must execute in its critical section.
b) Progress: If no process is currently in its critical section, then only those process which are currently not in its remainder section can participate in deciding who will enter the Critical section next.
c) Bounded waiting: There exists a bound with regards to the number of times other process can enter its critical section between when a process has requested for critical section and when that request is granted