Download Jar. Libraryless. Click here for Pure Java version (7444L/52K).
!7 // Test is OK when interruption message shows the stack trace as reason p-exp { Lock lock = lock(); Thread a = thread "A" { lock lock; sleepSeconds(10); }; Thread b = thread "B" { sleepSeconds(1); lock lock; sleepSeconds(10); }; sleepSeconds(3); interruptThread(b); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029625 |
Snippet name: | Lock interruption test (OK) |
Eternal ID of this version: | #1029625/4 |
Text MD5: | 1ce5d40705e52870368021b071ba337d |
Transpilation MD5: | 82d683458bd51e607b5ac57fd4ea25c5 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-30 20:02:31 |
Source code size: | 335 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 309 / 900 |
Version history: | 3 change(s) |
Referenced in: | -