PSTAT(3PVM)
π
PSTAT β the 3PVM girlies' guide to pvm_pstat β¨
okay so bestie, you ever just wanna know if a PVM process is still alive? like, is it thriving or is it ghosting you? that's literally this whole page. no cap. π«Ά
πΈ NAME πΈ
pvm_pstat β returns the status of the specified PVM process. that's it, that's the job, and she does it flawlessly. π
π SYNOPSIS π
C:
int status = pvm_pstat( tid )
Fortran:
call pvmfpstat( tid, status )
β¨ PARAMETERS β¨
tidβ Integer task identifier of the PVM process in question. like, which one are we checking on? that one. πstatusβ Integer returns the status of the PVM process identified bytid. Status isPvmOkif the task is running,PvmNoTaskif not, andPvmBadParamif thetidis bad. so basically: living, dead, or you handed her nonsense. π
π¦ DESCRIPTION π¦
The routine pvm_pstat returns the status of the process identified by tid. simple. elegant. iconic. β¨
Also note that pvm_notify() can be used to notify the caller that a task has failed. so if you want the gossip pushed to you instead of you going around asking, that's the move. iykyk. π
π EXAMPLES π
C:
tid = pvm_parent();
status = pvm_pstat( tid );
Fortran:
CALL PVMFPARENT( TID )
CALL PVMFPSTAT( TID, STATUS )
look at her go. main character energy fr fr. π₯
π ERRORS π
The following error conditions can be returned by pvm_pstat.
PvmBadParamβ Bad Parameter, most likely an invalidtidvalue. you gave her a fake address bestie, she's not gonna go knocking. πPvmSysErrβpvmdnot responding. the daemon is not answering her texts. genuinely concerning. πPvmNoTaskβ Task not running. she's gone, babe. not sleeping, not resting β just not running. π
lowkey important: those last two are NOT the same vibe. one is "the task is over," the other is "the whole pvmd went quiet on us." don't mix them up. π«Ά
π SEE ALSO π
pvm_notify(3PVM) β the other girl in this story, and honestly she's the one you call when you want to be told things proactively instead of checking yourself. obsessed. π
that's the whole page, no notes. this one's from PVM Version 3.4, dated 30 August, 1993, filed under PSTAT(3PVM) β and yeah, she's been serving status updates since the early nineties and she still ate. 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