Generally, a critical region is a place where, if two separate threads of execution were to be present, a race condition or some other undesirable effect would occur. Semaphores are one way of preventing two threads from being in the critical region at the same point in time.
| 归档时间: |
|
| 查看次数: |
3953 次 |
| 最近记录: |