package edu.rice.hj.example.comp322.assignments.hw2; import edu.rice.hj.api.HjRunnable; import edu.rice.hj.api.HjSuspendable; import edu.rice.hj.api.SuspendableException; import static edu.rice.hj.Module1.asyncNb; import static edu.rice.hj.Module1.finish; /** * This file is a skeleton for your GeneralizedReduce implementation. You can assume that each client includes a call to * perf.doWork(1) for each call to the combine() method. This abstraction assumes that each call to combine() takes 1 * unit of time, and ignores the cost all other computations. You should aim for maximum parallelism with respect to * this abstraction. All code should include basic documentation for each method in this class. *
* Though you will need to extend this file for your homework submission, do not alter the declarations below in any
* way, other than filling in the "..." code regions.
*
* @author Vivek Sarkar (vsarkar@rice.edu)
*/
public class GeneralizedReduceSol Constructor for GeneralizedReduceSol. run.