Documentation of 'edu.rit.smp.fractal.MSHistogramSmp2' Java class
MSHistogramSmp2
edu.rit.smp.fractal

Class MSHistogramSmp2



  • public class MSHistogramSmp2
    extends java.lang.Object
    Class MSHistogramSmp2 is an SMP parallel program that calculates a histogram of the Mandelbrot Set.

    Usage: java -Dpj.nt=K edu.rit.smp.fractal.MSHistogramSmp2 width height xcenter ycenter resolution maxiter outfile
    K = Number of parallel threads
    width = Image width (pixels)
    height = Image height (pixels)
    xcenter = X coordinate of center point
    ycenter = Y coordinate of center point
    resolution = Pixels per unit
    maxiter = Maximum number of iterations
    outfile = Output file name

    The program calculates an iteration count i for each pixel in the same way as the MandelbrotSetSeq program, with 0 <= i <= maxiter. The program prints into the output file a histogram of the i values; that is, for each value of i, how many times that value occurred in the image.

    The computation is performed in parallel in multiple threads. The program uses the reduction pattern with a shared reduction variable to accumulate the histogram. The program measures the computation's running time, including the time to print the output.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void main(java.lang.String[] args)
      Mandelbrot Set main program.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.Exception
        Mandelbrot Set main program.
        Throws:
        java.lang.Exception

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.