![]() |
![]()
| ![]() |
![]()
NAMEpvm_delhosts - Deletes hosts from the virtual machine. SYNOPSISC int info = pvm_delhosts( char **hosts, int nhost, int *infos ) PARAMETERS
DESCRIPTIONThe routine pvm_delhosts deletes the computers pointed to in hosts from the existing configuration of computers making up the virtual machine. All PVM processes and the pvmd running on these computers are killed as the computer is deleted. If pvm_delhosts is successful, info will be nhost. Partial success is indicated by 1<= info < nhost, and total failure by info < 1. The array infos can be checked to determine which host caused the error. The Fortran routine pvmfdelhost deletes a single host from the configuration with each call. If a host fails, the PVM system will continue to function and will automatically delete this host from the virtual machine. An application can be notified of a host failure by calling pvm_notify. It is still the responsibility of the application developer to make his application tolerant of host failure. EXAMPLESC: static char *hosts[] = { "sparky", "thud.cs.utk.edu", }; int status[2]; info = pvm_delhosts( hosts, 2, status ); Fortran: CALL PVMFDELHOST( 'azure', INFO ) ERRORSThese error conditions can be returned by pvm_delhosts
SEE ALSOpvm_addhosts(3PVM), pvm_notify(3PVM)
|