3 ms·
It would deadlock but there is a debugger that shows the state of any thread and where it is blocked.
by CodeArtisan 8y ago
It would deadlock but there is a debugger that shows the state of any thread and where it is blocked.
- smaddox 8y agoSo it's race free.... If you test every single possible system state, and remove all the race conditions. No thanks.
- ghkbrew 8y agoA race condition is a situation where the result depends on the ordering/interweaving of threads. And that example isn't actually one. It's a deadlock which are also bad but much more deterministic and easier to debug.