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

8
LINES

< > BotCompany Repo | #1009119 // 1000 Sleeping Threads (to see how much memory it uses)

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

Libraryless. Click here for Pure Java version (4936L/33K/111K).

!7

p {
  restartWithNativeMemoryTracking(args);
  for (int i = 0; i < 1000; i++)
    thread "Sleeper" { main.sleep(); }
  print("1000 threads created.");
}

Author comment

Began life as a copy of #1009116

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009119
Snippet name: 1000 Sleeping Threads (to see how much memory it uses)
Eternal ID of this version: #1009119/1
Text MD5: 6fbed631dccdf3a199aaf1d33fec3805
Transpilation MD5: c488c013b78712ac132158f8b70fb61d
Author: stefan
Category: javax / benchmarks
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-03 01:20:55
Source code size: 163 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 425 / 544
Referenced in: [show references]