.PVM.mytid {rpvm}R Documentation

Current task id

Description

Returns the tid of the current process.

Usage

.PVM.mytid()

Arguments

None.

Details

.PVM.mytid returns the tid of the calling process and can be called multiple times. The tid is a positive integer created by local pvmd.

This function enrolls this process into PVM on its first call and generate a unique tid if this process was not created by .PVM.spawn. In fact, any PVM system call will enroll a task in PVM if the task is not enrolled before the call.

Value

Returns integer task id of the calling process. Return -1 if an error occured.

Author(s)

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

References

PVM documentation

See Also

.PVM.exit, .PVM.spawn

Examples

## For name(tid) of process and to register with PVM
## Not run: mytid <- .PVM.mytid()

[Package rpvm version 0.6-2 Index]