Parameter Passing and Parallelization - executable, Eclipse and Maven projects

                     RuntimeDemo


The RuntimeDemo program displays the number of processor cores available and measures the time it takes to run the three types of methods in a loop or in parallel, respectively. It is controlled by keyboard input:

  • key input L triggers the execution in a loop
  • key input P triggers the parallel execution
  • key input E stands for Exit

The complete program consists of four classes:

  • DemoUnit.java
    provides the various layer methods
  • DemoLayers.java
    models the dynamic aspects of the Game of Life
  • StdDraw.java (from Princeton University)
    provides basic capabilities for creating drawings
  • DemoApp.java
    contains the program's main method

Download links: