logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pvm_mstat - Returns the status of a host in the virtual machine.

Description

       The  routine  pvm_mstat  returns  the status mstat of the computer named host with respect to running PVM
       processes. This routine can be used to determine if a particular host  has  failed  and  if  the  virtual
       machine  needs to be reconfigured. The function pvm_notify() can also be used to notify the caller that a
       host has failed.

Errors

       These error conditions can be returned by pvm_mstat

       PvmSysErr
              pvmd not responding.

       PvmNoHost
              giving a host name not in the virtual machine.

       PvmHostFail
              host is unreachable (and thus possibly failed).

Examples

       C:
            mstat = pvm_mstat( "msr.ornl.gov" );

       Fortran:
            CALL PVMFMSTAT( 'msr.ornl.gov', MSTAT )

Name

       pvm_mstat - Returns the status of a host in the virtual machine.

Parameters

       host    Character string containing the host name.

       mstat   Integer returning machine status:
                    value               MEANING
                    PvmOk               host is OK
                    PvmNoHost           host is not in virtual machine
                    PvmHostFail         host is unreachable (and thus possibly failed)

See Also

pvm_notify(3PVM), pvm_config(3PVM)

                                                 30 August, 1993                                     MSTAT(3PVM)

Synopsis

Cintmstat=pvm_mstat(char*host)Fortrancallpvmfmstat(host,mstat)

See Also