GETTID(3PVM)
π GETTID β pvm_gettid π
okay so bestie, welcome to the PVM Version 3.4 corner of the manual, where we're talking about pvm_gettid from 3PVM. This little icon is your β¨group-name-to-task-idβ¨ translator and honestly? she ate. π
πΈ NAME πΈ
pvm_gettid</p> β returns the tid of the process identified by a group name and instance number. π
Like, you know their name and their little number, and she hands you the tid. Matchmaker energy, fr fr.
β¨ SYNOPSIS β¨
C bestie:
int tid = pvm_gettid( char *group, int inum )
Fortran bestie:
call pvmfgettid( group, inum, tid )
π¦ PARAMETERS π¦
groupβ a character string holding the name of an existing group. existing, okay? we'll get to that. πinumβ the integer instance number of the process in the group. π’tidβ the integer task identifier that gets returned. the whole point, the main character, the moment π
π DESCRIPTION π
So the routine pvm_gettid returns the tid of the PVM process identified by the group name group and the instance number inum.
If pvm_gettid is successful, tid will be > 0. slay, we love a positive tid π«Ά
If some error occurs then tid will be < 0. not slay, but at least she told you π
That's it. That's the whole vibe. Name + number in, tid out. β¨
π EXAMPLES π
C:
tid = pvm_gettid("worker",0);
Fortran:
CALL PVMFGETTID('worker',5,TID)
See how the Fortran one's asking for instance 5 while the C one wants instance 0? Both valid, both cute, just different numbers bestie. π
π ERRORS π
These error conditions can be returned by pvm_gettid. read these, they're literally the answer to "why is my tid negative":
PvmSysErrβ can not contact the local pvmd; most likely it is not running. she's not even home. go check on her. πPvmBadParamβ bad parameter, most likely aNULLcharacter string. bestie you passed her nothing. nothing!! πPvmNoGroupβ no group exists by that name. the group is giving imaginary πPvmNoInstβ no such instance in the group. the group exists, that number doesn't. close but no. π§
π SEE ALSO π
pvm_joingroup(3PVM)pvm_getinst(3PVM)
And that's the page!! π This one's from PVM Version 3.4, dated 30 August, 1993 β yeah she's vintage, she's a classic, she's been serving tids since before we were born and she still looks good doing it. periodt. πβ¨π
π¦ where this page comes from
- debian bookworm: pvm-dev 3.4.6-5
- ubuntu jammy: pvm-dev 3.4.6-3.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms