.PVM.send {rpvm}R Documentation

Send data

Description

Sends the data in the active message buffer.

Usage

.PVM.send (tid, msgtag)

Arguments

tid integer task id of destination process
msgtag integer message tag (>=0) supplied by the user

Details

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.

Value

Returns 0 if sucessful, -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.mcast, .PVM.recv

Examples

a <- 1:10
## Not run: 
bufid <- .PVM.initsend ()
.PVM.pkintvec (a)
.PVM.send (tid, msgtag)
## End(Not run)

[Package rpvm version 0.6-2 Index]