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

10
LINES

< > BotCompany Repo | #1009121 // 100 Sleeping Threads with -Xss256k

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

Uses 5404K of libraries. Click here for Pure Java version (10199L/74K/229K).

1  
!7
2  
3  
p {
4  
  restartWithVMArgs(args, "-Xss256k -XX:NativeMemoryTracking=summary " + smallHeapArgs());
5  
  for (int i = 0; i < 100; i++)
6  
    thread "Sleeper" { main.sleep(); }
7  
  print("100 threads created.");
8  
  gc();
9  
  print("Process size: " + toM_str(oshi_currentProcessResidentSize()));
10  
}

Author comment

Began life as a copy of #1009116

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1009121
Snippet name: 100 Sleeping Threads with -Xss256k
Eternal ID of this version: #1009121/6
Text MD5: 8eda42148ae7281524e353767247a786
Transpilation MD5: a6f3d47c6d4723b5112122794e26d11c
Author: stefan
Category: javax / benchmarks
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-01 15:06:44
Source code size: 293 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 507 / 698
Version history: 5 change(s)
Referenced in: [show references]