Histogram Program Examples
For problems or suggestions, please mailto:Timothy.Rolfe@mail.ewu.edu
Fork-Based Programs:
HistoSeq.cpp Sequential program to compute a histogram
Histogram.cpp Fork-based parallel version of the same program
Histogram.rtf
Class hand-out: both of the above in two-column 8-point format
wallClock.c
Replacement for "time(NULL)"
"wallClock()" returns
seconds as a floating point number
MPI-Based Program:
MPI_Hist.C
MPI
version of the histogram calculation
PVM-Based Program:
Histogram
An example of SPMD programming under PVM.