PVM.bcast {rpvm}R Documentation

Broadcasting the data

Description

Broadcasts the data in the active message buffer to a group of processes.

Usage

.PVM.bcast (group, msgtag)

Arguments

group a character string naming the group
msgtag an integer identifying the message

Details

.PVM.bcast broadcasts a message stored in the active send buffer to all the members of group. The broadcast message is not sent back to the sender. Any PVM task can call .PVM.bcast, it need not be a member of the group. The content of the message can be distinguished by msgtag. At the other end, .PVM.recv or other receiving functions can be used to receive the message, just as the ones sent by .PVM.send.

.PVM.bcast is asynchronous. Computation on the sending processor resumes as soon as the message is safely on its way to the receiving processors. This is in contrast to synchronous communication, during which computation on the sending processor halts until a matching receive is exe cuted by all the receiving processors.

.PVM.bcast first determines the tids of the group members by checking a group data base. A multicast is performed to these tids. If the group is changed during a broadcast the change will not be reflected in the broadcast. Multicasting is not supported by most multiprocessor vendors. Typically their native calls only support broadcasting to all the user's processes on a multiprocessor. Because of this omission, .PVM.bcast may not be an efficient communication method on some multiprocessors.

Value

None.

Author(s)

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

References

PVM documentation

See Also

.PVM.joingroup

Examples

gname <- "pvmtest"
## Not run: .PVM.initsend ()
## Not run: .PVM.pkintvec (1:10)
## Not run: .PVM.bcast(gname, msgtag = 11)

[Package rpvm version 0.6-2 Index]