Uses 1113K of libraries. Click here for Pure Java version (3695L/20K).
!7 sclass Entry { WeakReference<Thread> thread; long threadID; S threadName, stackTrace; } cmodule2 RunnableThreads > DynObjectTable<Entry> { start { dontPersist(); //itemToMap = func(Thread t) -> Map { litorderedmap("Name" := t.getName()) }; dm_doEveryAndNow(2.0, r actualUpdate); } void actualUpdate enter { setData(map(runnableThreadsWithStackTraces(), (t, st) -> nu Entry( thread := weakRef(t), threadID := threadID(t), threadName := t.getName(), stackTrace := stackTraceToString(st)))); } afterVisualize { popupMenuItem_top("Cancel thread", voidfunc(Entry e) { cancelForeignThread(e.thread!); }); } }
Began life as a copy of #1016644
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: | #1027695 | 
| Snippet name: | Runnable Threads | 
| Eternal ID of this version: | #1027695/9 | 
| Text MD5: | 720325bf9b488022bb8475c118caf9f5 | 
| Transpilation MD5: | 1c7461a6465b45be8ef131f7bd27a5a7 | 
| Author: | stefan | 
| Category: | javax / modules | 
| Type: | JavaX source code (Dynamic Module) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2021-06-25 12:54:38 | 
| Source code size: | 698 bytes / 30 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 422 / 31180 | 
| Version history: | 8 change(s) | 
| Referenced in: | #1032093 - Windows and JWindows |