To really test the processing power of the parallel
processor, I wrote a program to generate the Mandelbrot and save it as
a bitmap file. I actually wrote 2 programs, one that saves the fractal
as a single file of any size. The second saves the fractal as a series
of pages, with one page being a fixed size. The code that I have
included is from the second.
The way both of the programs work is that the master
program breaks up the fractal into smaller pieces, and farm them off to
a number of slave processes that compute the fractal for that piece and
then send that data back.
The files necessary for this are the following:
The largest fractal I generated was a 25 page, 5x5 image of the region (-1.004047,0.313598) - (-1.012119,0.307215) of the Mandelbrot Set. It has a total of 18,374,200 Pixels and 13,116,078,913 float multiplication. The total generation time was 466 seconds. You can download the zipped fractal as a series of gifs from here:
"cone", Download Wallpaper
(bmp, Kb)
"fire", Download Wallpaper
(bmp, 443Kb)
"horizon", Download Wallpaper
(bmp, Kb)
"horizon2", Download Wallpaper
(bmp, Kb)
"spiral", Download Wallpaper
(bmp, Kb)
"trees", Download Wallpaper
(bmp, Kb)
Written by: David Randall
randaldt@acad.etown.edu
http://www.etown.edu/~randaldt