首页 > 试题广场 >

Show that,if the wait( ) and s

[问答题]
Show that,if the wait( ) and signal( ) semaphore operations are not executed atomically,then mutual exclusion may be violated.
推荐
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.
发表于 2018-03-18 22:01:58 回复(0)