The program
Polygon_Scatter calls the programs
Polygon_Remotei in parallel
(i = 1..n, with n = 2 in this illustrative
example), and the results from the Remotes are received by
Polygon_Gather. Besides doing their own calculations:
(a) Scatter gets the user's data;
(b) Remotei generates
the coordinates of curve i; and
(c) Gather receives the coordinates of the curves,
and makes a graph.
(For ease of generalization to larger n,
the programs are internally simply called
'i.exe', i = 0..n.)
Plots a graph from the results of the remote parallel
servers. |