3 ms·
Selectively suspending threads is a good feature, but be warned that it can cause arbitrary deadlocks, which won't be possible otherwise. Eg. it's possible to s
by mritun 12y ago
Selectively suspending threads is a good feature, but be warned that it can cause arbitrary deadlocks, which won't be possible otherwise. Eg. it's possible to suspend a thread in a synchronised method and then the other thread will just block.
- Too 12y agoThat is not a deadlock. That's a paused thread a running thread is waiting for. If you unpause all the threads again your program should continue as usual. If not then you have some fun debugging of race conditions ahead of you. (Ignoring time outs and watch dogs)