File: PVM.send.Rd

package info (click to toggle)
rpvm 0.6.2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 440 kB
  • ctags: 90
  • sloc: ansic: 1,075; sh: 57; makefile: 12
file content (53 lines) | stat: -rw-r--r-- 1,432 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
\name{.PVM.send}
\alias{.PVM.send}
\title{Send data}
\description{
  Sends the data in the active message buffer.
}
\usage{
.PVM.send (tid, msgtag)
}
\arguments{
  \item{tid}{integer task id of destination process}
  \item{msgtag}{integer message tag (>=0) supplied by the user}
}
\value{
  Returns 0 if sucessful, -1 if failed..
}
\details{
  Sends a message stored in the active buffer to the PVM process
  identified by \code{tid}.  \code{msgtag} is used to label the content
  of the message.

  \code{.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.

  \code{.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.
}
\references{
  PVM documentation
}
\seealso{
  \code{\link{.PVM.mcast}}, \code{\link{.PVM.recv}}
}
\examples{
a <- 1:10
\dontrun{
bufid <- .PVM.initsend ()
.PVM.pkintvec (a)
.PVM.send (tid, msgtag)
}
}
\author{
  Na (Michael) Li \email{nali@umn.edu} and
  A.J. Rossini \email{rossini@u.washington.edu}
}
\keyword{utilities}
\keyword{connection}
\keyword{interface}