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

24
LINES

< > BotCompany Repo | #1017608 // Test Q2 [Dyn Module]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (14666L/100K).

!7

sclass TestQ2 > DynSingleFunctionWithPrintLog {
  transient new L<Q2> queues;
  int n = 10;
  
  void start {
    for i to n:
      queues.add(new Q2);
  }
  
  void doIt() {
    for i to 2: {
      final int _i = i;
      for (final Q2 q : queues)
        q.add(r {
          sleep(random(4000));
          print("I am " + _hashCode(q) + "/" + _i);
          sleepSeconds(2);
        });
      sleep(500);
    }
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017608
Snippet name: Test Q2 [Dyn Module]
Eternal ID of this version: #1017608/7
Text MD5: a8709cff6dd92ebc3fe4a29ccb1c1303
Transpilation MD5: 9d582b3155d1fafbe5037fb9af793c1e
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-29 18:36:15
Source code size: 445 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 289 / 400
Version history: 6 change(s)
Referenced in: [show references]