The return code tells C the number of tasks successfully spawned. Its argument tells PVM that XDR C data conversion should be performed only if the virtual machine is hetero C genous. Data is packed sequentially into the buffer with the calls to C pvmfpack. The arguments to pvmfpack specify the data type, data C address, number of values and stride. C Finally, the data is sent to each worker task by calling pvmfsend.
Index is incremented by chunksize for the C next workers partition of the array.
Note that PVM routine calls provide C return codes even if they are not always used in this program. The master task now waits in a loop to receive each worker's partition of the C array. Bufid is then used to C find out additional information about the message by calling pvmfbufinfo. The data in the message buffer is unpacked sequentially with calls to C pvmfunpack. The arguments to pvmunpack specify the data type, C address of the data, number of values and stride.