PSTAT(3PVM)

πŸ“¦ version 3.4.6, in debian bookworm, ubuntu jammy

πŸ’… 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 by tid. so: status is PvmOk if the task is running, PvmNoTask if it's not, and PvmBadParam if the tid is 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 invalid tid value. bestie. bestie. check your tid πŸ™ˆ
  • PvmSysErr β€” pvmd not 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