.PVM.mcast {rpvm}R Documentation

Multicast data

Description

Multicast the data in the active message buffer to a set of tasks.

Usage

.PVM.mcast (tids, msgtag)

Arguments

tids vector of the task ids of the tasks to be sent to
msgtag integer message tag supplied by the user, must be >=0

Details

.PVM.mcast multicasts a message stored in the active send buffer to tasks specified in the vector tids. The message is not send to the caller even if its tid is in tids. The content of the message can be dustinguished by msgtag.

The receiving processes can call either .PVM.recv or .PVM.nrecv to receive their copy of the multicast. .PVM.mcast is asynchronous.

Multicasting is not supported by most multiprocessor vendors. Typically their native calls support only broadcasting to all the user's processes on a multiprocessor. Because of this omission, .PVM.mcast may not be an efficient communication method on some multiprocessors except in the special case of broadcasting to all PVM processses.

Value

Return 0 if successful, -1 if failed.

Author(s)

Na (Michael) Li nali@umn.edu and A.J. Rossini rossini@u.washington.edu

References

PVM documentation

See Also

.PVM.send

Examples

## Not run: .PVM.initsend ("Raw")
## Not run: .PVM.pkintvec (1:10)
## Not run: .PVM.mcast (tids, msgtag = 5)

[Package rpvm version 0.6-2 Index]