Process mutual exclusionThere are several processes P1 topn(n>2)
They want to use a common resource (say main memory). All of them cannot use the resource simultaneously.
The problem can be solved in two ways:-
i. When one of them is using this, all the remaining processes must be forced to wait.
ii. Later, when the resource is released, one of the waiting processes must be able to get it.