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).

1  
!747
2  
3  
m {
4  
  p {
5  
    Map<Thread, StackTraceElement[]> threadMap = Thread.getAllStackTraces();
6  
    for (Thread t : threadMap.keySet()) {
7  
      //print(structure(threadMap));
8  
      print(t);
9  
    }
10  
    print(threadMap.size() + " threads.");
11  
  }
12  
}

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: 447 / 520
Referenced in: [show references]