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

13
LINES

< > BotCompany Repo | #1001379 // Always keep a pre-spun VM around

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

Libraryless. Click here for Pure Java version (762L/6K/22K).

!747

m {
  p {
    while (true) {
      if (countPreSpunVMs() == 0) {
        startPreSpunVM();
        while (countPreSpunVMs() == 0) sleep(500);
      }
      sleep(1000);
    }
  }
}

download  show line numbers  debug dex  old transpilations   

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

Comments [hide]

ID Author/Program Comment Date
1133 stefan Yeah the logic is kinda rough... but it should actually work, and nothing breaks if it doesn't. :) 2015-10-17 18:59:25

add comment

Snippet ID: #1001379
Snippet name: Always keep a pre-spun VM around
Eternal ID of this version: #1001379/1
Text MD5: 8cef02571f08ea43cdac9fa14c9a9a15
Transpilation MD5: 561bbc03987b266388a0a876c08a31e3
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-17 18:59:28
Source code size: 198 bytes / 13 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 855 / 1089
Referenced in: [show references]