开发者

Are semaphores "complete"?

开发者 https://www.devze.com 2022-12-15 04:29 出处:网络
Can every imaginable synchronization probl开发者_Python百科em be solved with judicious use of semaphores? What about weak semaphores?No.Just for example, it\'s impossible for a system that uses only s

Can every imaginable synchronization probl开发者_Python百科em be solved with judicious use of semaphores? What about weak semaphores?


No. Just for example, it's impossible for a system that uses only semaphores for synchronization to provide wait-free guarantees, or even progress guarantees, in the face of third-party code (e.g. a plugin). A perverse or poorly-written section of code can deny access to a semaphore-guarded section of code to everyone forever.


Agerwala argues that appropiately extended semaphores are complete. This doesn't answer all my questions, but is on right track. David Seiler has a point too.

0

精彩评论

暂无评论...
验证码 换一张
取 消