C int tid = pvm_mytid( void )
Fortran call pvmfmytid( tid )
Any PVM system call (not just pvm_mytid) will enroll a task in PVM if the task is not enrolled before the call.
The tid is a 32 bit positive integer created by the local pvmd. The 32 bits are divided into fields that encode various information about this process such as its location in the virtual machine (i.e. local pvmd address), the CPU number in the case where the process is on a multiprocessor, and a process ID field. This information is used by PVM and is not expected to be used by applications. Applications should not attempt to predict or interpret the tid with the exception of calling tidtohost()
If PVM has not been started before an application calls pvm_mytid the returned tid will be < 0.
C: tid = pvm_mytid( ); Fortran: CALL PVMFMYTID( TID )