3.1 MergeSort – Code […] slave1 = context.createAglet(this.getAgletContext().getHostingURL(), workerpool.worker.mergesort.MergeWorker , half1); slave2 = context.createAglet(this.getAgletContext().getHostingURL(), workerpool.worker.mergesort.MergeWorker , half2); // lookup two workers if there is a reception if (reception != null) { Message msg1 = new Message( lookup ); URL adress1 = (URL)reception.sendMessage(msg1); URL adress2 = (URL)reception.sendMessage(msg1); // dispatch those slaves to the worker machines slave1.dispatch(adress1); slave2.dispatch(adress2); […] } MergeSort.java
{}