mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-25 21:58:26 +01:00
parent
9a2086081c
commit
59833f2a55
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ Yields to runtime
|
||||||
Tries to acquire lock
|
Tries to acquire lock
|
||||||
```
|
```
|
||||||
|
|
||||||
We have a deadlock. Task B we'll never manage to acquire the lock, because the lock
|
We have a deadlock. Task B will never manage to acquire the lock, because the lock
|
||||||
is currently held by task A, which has yielded to the runtime before releasing the
|
is currently held by task A, which has yielded to the runtime before releasing the
|
||||||
lock and won't be scheduled again because the runtime cannot preempt task B.
|
lock and won't be scheduled again because the runtime cannot preempt task B.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue