int info = pvm_addhosts (char **hosts, int nhost,
int *infos)
int info = pvm_delhosts (char **hosts, int nhost,
int *infos)
nhost
hosts in the virtual
machine
hosts
is an array of pointers to character strings
containing the names of the machine to be added or deleted
infos
is an array of length nhost
that
contains the status code for each host being added or deleted
It allows the user to check if only one of a set of hosts
caused a problem rather than trying to add or delete the
entire set of hosts again call pvmfaddhost (host, info)
call pvmfdelhost (host, info)
host
is character string containing the name of the
machine to be added or deleted
info
contains the status code for the
host being added or deleted
static char * hosts [] = { "mpp.lifl.fr", "alpha.lifl.fr", } ; int status [2], info, i ; info = pvm_addhosts (hosts, 2, status) ; if (info < 0) for (i=0; i<2; i++) if (status [i] < 0) printf ("error (%d) in adding %s\n", status [i], hosts [i]) ;
CALL PVMFADDHOST ('mpp.lifl.fr', INFO) IF (INFO .LT. 0) THEN WRITE (*,*) 'Error in adding mpp.lifl.fr', INFO ENDIF CALL PVMFADDHOST ('alpha.lifl.fr', INFO) IF (INFO .LT. 0) THEN WRITE (*,*) 'Error in adding alpha.lifl.fr', INFO ENDIF