3 ms·
That can just as well be implemented by message passing, which can happen through a socket or whatever.
by yxhuvud 13y ago
That can just as well be implemented by message passing, which can happen through a socket or whatever.
- fr0sty 13y agoAnd if both threads are doing a blocking read waiting for their message? Blocking locks, deadlocks, endless fun... But wait, you don't use blocking-IO, you poll the sockets to see if there is data available, right? Do you realize what you are polling? (hint, it is global and mutable)