I'm doing an 'operating systems' topic and I can't get my head around this:
We have been asked to demonstrate how mutual exclusion can be violated if wait(s) is not handled atomically. (semaphore implementation)
Now, I see how this may cause an incorrect count, resulting in the program thinking it has more resources available than it truly does,
But I can't seem to grasp the concept of how this will violate mutual exclusion :(
Can anyone shed some light or point me in the right direction?