1 | static void interruptDeadlockedThreads(L<ThreadInfo> lockingThreads) { |
2 | if (empty(lockingThreads)) ret; |
3 | L<Thread> threads = threadInfosToThreads(lockingThreads); |
4 | if (empty(threads)) ret; |
5 | Thread t = random(threads); |
6 | print("Interrupting deadlocked thread " + quote(t.getName()) + " (out of " + l(lockingThreads) + ")"); |
7 | t.interrupt(); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009353 |
Snippet name: | interruptDeadlockedThreads |
Eternal ID of this version: | #1009353/1 |
Text MD5: | 8ecd178b16196b1f1f1249d6ab7980b1 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-07-24 16:55:33 |
Source code size: | 352 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 528 / 516 |
Referenced in: | [show references] |