.PVM.mcast {rpvm} | R Documentation |
Multicast the data in the active message buffer to a set of tasks.
.PVM.mcast (tids, msgtag)
tids |
vector of the task ids of the tasks to be sent to |
msgtag |
integer message tag supplied by the user, must be >=0 |
.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.
Return 0 if successful, -1 if failed.
Na (Michael) Li nali@umn.edu and A.J. Rossini rossini@u.washington.edu
PVM documentation
## Not run: .PVM.initsend ("Raw") ## Not run: .PVM.pkintvec (1:10) ## Not run: .PVM.mcast (tids, msgtag = 5)