PSTAT(3PVM)
π PSTAT(3PVM) β the pvm_pstat glow-up β¨
okay bestie, gather round, because this is pvm_pstat from the PVM Version 3.4 manual, and she is literally the vibe check for your tasks π
π NAME π
pvm_pstat β returns the status of the specified PVM process. that's it, that's the whole job, and she does it flawlessly π«Ά
β¨ SYNOPSIS β¨
C girlies:
C int status = pvm_pstat( tid )
Fortran girlies:
Fortran call pvmfpstat( tid, status )
πΈ PARAMETERS πΈ
tidβ integer task identifier of the PVM process in question. like, which task are we checking on πstatusβ integer, and it returns the status of the PVM process identified bytid. so: status isPvmOkif the task is running,PvmNoTaskif it's not, andPvmBadParamif thetidis bad. three outcomes, one int, no cap π
π¦ DESCRIPTION π¦
so the routine pvm_pstat returns the status of the process identified by tid. that's the tea β
also, and this is important bestie, note that pvm_notify() can be used to notify the caller that a task has failed. so if you want the drama delivered to you instead of having to go ask, that's the move π₯
π EXAMPLES π
C, slaying as usual:
tid = pvm_parent();
status = pvm_pstat( tid );
Fortran, equally iconic:
CALL PVMFPARENT( TID )
CALL PVMFPSTAT( TID, STATUS )
π ERRORS π
the following error conditions can be returned by pvm_pstat. buckle up π’
PvmBadParamβ Bad Parameter, most likely an invalidtidvalue. bestie. bestie. check yourtidπPvmSysErrβpvmdnot responding. she's not picking up the phone πPvmNoTaskβ Task not running. it's giving ghosted π»
π SEE ALSO π
pvm_notify(3PVM) β go read her too, she's part of the friend group π
no thoughts, just status codes, fr fr.PvmOk= living your best life,PvmNoTask= not it,PvmBadParam= we need to talk.
and that's the whole page, bestie π this was PVM Version 3.4, dated 30 August, 1993, and honestly? she ate and left no crumbs πβ¨ mwah π
π¦ 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