Here is the java software: package sum; import java.util.concurrent.*; import java.util.Scanner; // class for managing ForkJoinPool settings
Question:
Here is the java software:
package sum; import java.util.concurrent.*; import java.util.Scanner; // class for managing ForkJoinPool settings class Globals { static int processes = 1; // set default number of processes to 1 static ForkJoinPool fjPool; // ForkJoinPool object variable } // end class Globals //***************************************************************************** class Sum extends RecursiveTask
Your task is to run the software under different situations -- with modifications, in different computing environments, perhaps with other software running, and report your results. The goal is for you to explore factors that affect the efficiency of parallel computing. You can design your own specific experiment.
You could:
- change the maximum number of processes allowed by the program,
- try the same program on different systems,
- try the program with different other program running -- such with Excel and Word open or , while playing music or watching a movie, or with a large game program running,
- change the code to move from recursion to iteration,
- make other changes that you might think of to explore concurrent computing.
You should run the program several times, either in different environments, or with different values for the things you are changing, and report on your results.
You should describe what platform you ran the code on and what questions you were investigating, such as:
- How did the performance of one computer compare to another?
- How did the number of maximum processes affect the time it took the program to run?
- How did the program run with different other programs running at the same time?
- and so on. Your questions should match how you conducted the experiment.
report what you did and what conclusions you drew from this experiment. Include the data from your experiment with your report.
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis