Next: Parallel version 3 :
Up: Additing n Numbers in
Previous: Parallel add version 1
  Contents
This program spawns multiple processses which work on an
array of variable size and number of processes varying from 1 to 3. A table
provides information on summation results and speed up obtained. To
calculate the speedup we need the time taken for a pure sequential run
of the slave process. This program achieves the addition of the array
using the sequential add without using parallel computing primitives
as we will see in a later example (Timing the barrier calls).
File names: plladd2.c /*source code */
plladd2 /* executable */
plladd2op /* output example file */
Sushil Prasad
2004-09-16