Q. Returns information about present virtual machine?
Returns the tid of process which spawned the calling process.
Returns the host of particular PVM process. Error if negative value is returned.
- int pvm_config( int *nhost, int *narch, struct pvmhostinfo **hostp )
struct pvmhostinfo {
int hi_tid;
char *hi_name;
char *hi_arch;
int hi_speed;
};
Returns information about present virtual machine configuration. nhost is number of hosts (pvmds) in virtual machine. narch is number of various data formats being used. hostp is a pointer to an array of structures that comprises the information about every host comprising its pvmd task ID, architecture, relative speed and name (default is 1000).