PVM.barrier {rpvm}R Documentation

Group synchronization

Description

Blocks the calling process until all processes in a group have called it.

Usage

.PVM.barrier (group, count = .PVM.gsize (group))

Arguments

group a character string naming the group
count the number of group members that must call .PVM.barrier before they are all released, usually the total number of members of the specified group.

Details

.PVM.barrier blocks the calling process until count members of the group have called it. The count argument is required because processes could be joining the given group after other processes have called .PVM.barrier. Thus PVM doesn't know how many group members to wait for at any given instant. Although count can be set less, it is typically the total number of members of the group. So the logical function of the .PVM.barrier call is to provide a group synchronization. During any given barrier call all participating group members must call barrier with the same count value. Once a given barrier has been successfully passed, .PVM.barrier can be called again by the same group using the same group name.

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: myinst <- .PVM.joingroup (gname)
# do something here ...
## Not run: .PVM.barrier (gname, 5)

[Package rpvm version 0.6-2 Index]