Next | Prev | Up | Top | Contents | Index

Example Programs

The two examples in this section illustrate some of the porting concepts presented in this chapter. The first one is a SPMD program where all the tasks are instances of the same executable; here the first task spawns the remaining ones in the PVM version. The second example is a general MPMD program based on the master-slave paradigm, with one master task and multiple slave tasks.

Both these examples are taken from the example set provided with the public domain PVM software. Please note that several different translations are possible for each example, and the ones given here may not be the most efficient ones.


Example 1: SPMD Program
Example 2: MPMD Example

Next | Prev | Up | Top | Contents | Index