Scilab function

pvm_addhosts - add hosts to the virtual machine.

### Sequence d'appel

  `[infos] = pvm_addhosts(hosts)`

### Parametres

- `hosts` : row of strings, naming the hosts to be added.
- `infos` : row of integer, corresponding to the status for each host.

### Description

`pvm_addhosts` adds the computers named in

to the configuration of computers making up the virtual machine. The names should have the same syntax as lines of a pvmd hostfile (see man page for pvmd3): A hostname followed by options of the form xx=y.

The array

can be checked to determine the status for each host. Values less than zero indicate an error, while positive values are TIDs of the new hosts.

The status of hosts can be requested by the application using `pvm_config`. If a host fails it will be automatically deleted from the configuration. Using pvm_addhosts a replacement host can be added by the application, however it is the responsibility of the application developer to make his application tolerant of host failure. Another use of this feature would be to add more hosts as they become available, for example on a weekend, or if the application dynamically determines it could use more computational power.

### Exemples

    info = pvm_addhosts(["isostar","loop"])

### Voir aussi

`pvm_delhosts` `pvm_config`