Suppose that a process interchanges the order in which the and operations on the semaphore mutex are executed, resulting in the following execution:
signal(mutex);
...
critical section
...
wait(mutex);
- In this situation, several processes maybe executing in their CSs simultaneously, violating the mutual-exclusion requirement.
- This error may be discovered only if several processes are simultaneously active in their CSs. Note that this situation may not always be reproducible.