Result: Compute tasks exploiting slaves |
(1) network discovery by LookupService; |
(2) query LookupService for registered slaves; |
(3) if slaves are available then |
(4) foreach slave do |
(5) instantiate a specific ControlThread; |
(6) end |
(7) wait the end of computation; |
(8) else |
(9) register an observer into LookupService; |
(10) wait for notifications; |
(11) jump to line 4; |
(12) end |
(13) terminate the program; |