Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1000948 // List all threads (short method)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (42L/1K/2K).

!747

m {
  p {
    Map<Thread, StackTraceElement[]> threadMap = Thread.getAllStackTraces();
    for (Thread t : threadMap.keySet()) {
      //print(structure(threadMap));
      print(t);
    }
    print(threadMap.size() + " threads.");
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1000948
Snippet name: List all threads (short method)
Eternal ID of this version: #1000948/1
Text MD5: 75ae8b97fc4d1b05ff20b36244bc1053
Transpilation MD5: 739ebfb8f633b599b58f3a9bd578cdea
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-09-11 19:00:24
Source code size: 253 bytes / 12 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 441 / 512
Referenced in: [show references]