Update src/advance/concurrency-with-threads/sync1.md

pull/1219/head
Sunface 1 year ago committed by GitHub
parent bdba4ab01f
commit 14b538ec5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -350,7 +350,7 @@ fn main() {
线程 0 锁住了MUTEX1接着准备去锁MUTEX2 !
线程 1 锁住了MUTEX2, 准备去锁MUTEX1
线程 1 获取 MUTEX1 锁的结果: Err("WouldBlock")
线程 0 获取MUTEX2锁的结果: Ok(0)
线程 0 获取 MUTEX2 锁的结果: Ok(0)
死锁没有发生
```

Loading…
Cancel
Save