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

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

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

Loading…
Cancel
Save