Research Article

Toward Sci-: A Lightweight Cloud PaaS for Developing Embarrassingly Parallel Applications Based on Jini

Algorithm 2

JJPF client side.
Result: Compute tasks exploiting slaves
(1)network discovery by LookupService;
(2)queryLookupService for registered slaves;
(3)ifslaves are available then
(4)   foreachslave 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;