static void runInAllVMs(S programID) { print("Injecting program to all VMs..."); // inject to VMs L<Injection> injections = injectToAll(programID); // wait until injections ended waitUntilInjectionsDone(injections); print("Getting output of " + l(injections) + " injection(s)."); L<S> output = getOutputOfInjections(injections); for (int i = 0; i < l(injections); i++) { print(); print("VM " + injections.get(i).vmPort + ":"); print(rtrim(output.get(i))); } // release injections (TODO) }
Began life as a copy of #1001628
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: | #1001779 |
Snippet name: | runInAllVMs (and duplicate output to our own System.out) |
Eternal ID of this version: | #1001779/1 |
Text MD5: | 8edade200a8703258111c6cccc77eb9a |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-11-14 18:18:59 |
Source code size: | 548 bytes / 19 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 620 / 847 |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) |