next up previous contents
Next: Parallel add version 1 Up: Examples Previous: Print Hello.   Contents

Additing n Numbers in Parallel

This program divides an array of integer amongst available processes and each one of the processes performs addition of the elements of the data set in it's domain. The final result is obtained by each process adding it's result to a global final result. Note that in the sequential version we would obtain each element of the array one at a time and add to the global result. Three versions of the same idea are provided.



Subsections

Sushil Prasad 2004-09-16