Gruple comes with one demo, currently. More will probably be added in future. Below are the instructions on how to run the demo(s).
The Mandelbrot demo uses the Master-Worker pattern to compute the Mandelbrot set and display it. To run it, go to the directory Examples and type "ant mandelbrot". This will launch the process dividing the job into 16 tasks among 4 workers and displaying the result in a 640x640 window. Once the graphic has finished drawing, click and drag to re-draw a close-up of the bracketed area.
To modify the numbers of tasks and workers, as well as the size of the display, edit build.properties and add the lines:
With t, s, w, and h set to what you like. Please note the following:
If you have a machine with more than one processor or core, try variations of the demo using workers from 1 up to the number of processors available. The difference in speed may be overwhelmed by the time taken to draw the image, but it could still be informative, especially if you have 4 or more processors/cores.
Please note that the Mandelbrot program was adapted from an example in:
Eric Freeman, Susanne Hupfer, and Ken Arnold. !JavaSpaces Principles, Patterns, and Practice, Addison Wesley, 1999.