in reply to Re^9: Threads sharing global variable
in thread Threads sharing global variable
Did he run ikegami's code?
Of course I did. What else do you think triggered my reaction to it?
Can you please explain, how exactly does it hang?
The best I've been able to conclude is that the signal is simply not seen by the waiters; because of the crude and sloppy emulation.
But even in *nix, cond_vars are known to be unreliable with waits spuriously returning even when no thread has signalled; and signals being missed if there are no waiters waiting at the exact moment of the signal. Edge-triggered semantics.
The best analogy I've seen for it is: playing phone tag in the days before voicemail and answering machines. Unless the recipient of the call is sat waiting by the phone when it rings; the call goes completely unnoticed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: Threads sharing global variable
by Anonymous Monk on Mar 06, 2016 at 15:00 UTC | |
by BrowserUk (Patriarch) on Mar 06, 2016 at 15:08 UTC | |
by Anonymous Monk on Mar 06, 2016 at 15:25 UTC | |
by BrowserUk (Patriarch) on Mar 06, 2016 at 15:34 UTC | |
by Anonymous Monk on Mar 06, 2016 at 15:45 UTC | |
| |
by Anonymous Monk on Mar 06, 2016 at 15:31 UTC | |
by BrowserUk (Patriarch) on Mar 06, 2016 at 15:37 UTC |