您的位置:首页 > Web前端

Difference between mutex and semaphore

2011-08-20 17:01 330 查看
Difference between mutex and semaphore

1. Mutex can only be unlocked by the process locks it, where as a binary semaphore can be unlocked by any other process.

2. Mutex will only let one thread attempt access, a Semaphore can be assigned a number of threads access.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: