|
|
|
|
|
by devit
3930 days ago
|
|
"Communicating" doesn't solve deadlocks. Thread 1 sends message A to thread 2 and waits for a response. As part of processing message A, thread 2 sends message B to thread 1 and waits for a response... forever, since thread 1 is blocked waiting for thread 2... |
|
And to be fair, it does significantly reduce the risk of deadlock by avoiding the complexity of explicit mutexes and condition variables.