|
|
|
|
|
by acconsta
3932 days ago
|
|
I don't understand that scenario — isn't message B the message thread 1 is waiting for? And to be fair, it does significantly reduce the risk of deadlock by avoiding the complexity of explicit mutexes and condition variables. |
|
Certainly a bit more contrived then deadlock with locks, though (which you can easily do with even a single thread, even in Rust).