A wait operation atomically decrements the value associated with a semaphore.If two wait operations are executed on a semaphore when its value is 1,if the two operations are not performed atomically,then it is possible that both operations might proceed to decrement the semaphore value thereby violating mutual exclusion.