Skip to content

Commit a29e3e0

Browse files
Update p3-monitor-cond.md
1 parent 0655908 commit a29e3e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lec12/p3-monitor-cond.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ https://yangzhaoyunfei.github.io/monitors/ 管程(Monitors) -->
210210
如果线程T1因条件A未满足处于阻塞状态,那么当**线程T2让条件A满足并执行signal操作唤醒T1**后,不允许线程T1和T2同时处于管程中,那么如何确定哪个执行/哪个等待?
211211
- 管程中条件变量的释放处理方式:
212212
- Hoare管程:**T1执行**/T2等待,直至T1离开管程,然后T2继续执行
213-
- MESA/Hansen管程:**T2执行**/T1等待,直至T2离开管程,然后T1可能继续执行
213+
- MESA/Hansen管程:**T2执行**/T1等待,直至T2离开管程,然后T1可能继续执行(重新竞争/直接执行)
214214

215215
---
216216

0 commit comments

Comments
 (0)