.PVM.mytid {rpvm} | R Documentation |
Returns the task id(s) of the current, parent and sibling processes.
.PVM.mytid() .PVM.parent () .PVM.siblings ()
None.
.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.
.PVM.parent
returns tid of the process that spawned the calling
process. If the calling process was not created with
.PVM.spawn
, return 0 (no parent).
.PVM.siblings
returns the task ids of processes that were
spawned together in a single spawn call. The internal list is not
updated when sibling tasks exit the virtual machine and should be
treated as a snapshot of the parallel program when it was first
started. If a task was not started by .PVM.spawn
, then
.PVM.siblings
will behave identically to .PVM.mytid
.
Returns positive integer task id(s) of the calling process, the parent
processor the sibling (started in a single .PVM.spawn
call) processes.
Return an negative integer if an error occured.
Na (Michael) Li nali@umn.edu and A.J. Rossini rossini@u.washington.edu
PVM documentation
## For name(tid) of process and to register with PVM ## Not run: mytid <- .PVM.mytid() myparent <- .PVM.parent () mysiblings <- .PVM.siblings () ## End(Not run)