.PVM.send {rpvm} | R Documentation |
Sends the data in the active message buffer.
.PVM.send (tid, msgtag)
tid |
integer task id of destination process |
msgtag |
integer message tag (>=0) supplied by the user |
Sends a message stored in the active buffer to the PVM process
identified by tid
. msgtag
is used to label the content
of the message.
.PVM.send
is asynchronous. Computation on the sending processor
resumes as soon as the message is safely on its way to the receiving
processor. This is in constrast to synchronous communication in which
computation on the sending processor halts until the matching receive
is executed by the receiving processor.
.PVM.send
first checks to see whether the destination is on the
same machine. If so and this host is a multiprocessor, then the
vender's underlying message-passing routines are used to move the data
between processes.
Returns 0 if sucessful, -1 if failed..
Na (Michael) Li nali@umn.edu and A.J. Rossini rossini@u.washington.edu
PVM documentation
a <- 1:10 ## Not run: bufid <- .PVM.initsend () .PVM.pkintvec (a) .PVM.send (tid, msgtag) ## End(Not run)