EvalRemote class
public class EvalRemote extends Thread { … worker = (RemoteInterface) Naming.lookup ( … );
while (!end_cycle) { try {task = SkeletonEval.taskpool.pop();} catch (EmptyStackException e) {end_cycle = true;} if(!end_cycle) { Object result = null; try { result = worker.WorkerCompute(program,task); n_tasks++; } catch (RemoteException e) {… } SkeletonEval.respool.push(result);} } … }}