Q. Signaling PVM process?
- int pvm_sendsig( int tid, int signum )
Transmits a signal to other PVM process. tid is task identifier of PVM process to receive signal. signum is the signal number.
- int info = pvm_notify( int what, int msgtag, int cnt, int *tids ) Request notification of PVM event like host failure. What denotes type of event to activate the notification. A number of them are:
PvmTaskExit
Task exits or is killed.
PvmHostDelete
Host is deleted or crashes.
PvmHostAdd
New host is added.
msgtag is message tag to be employed in notification. cnt For PvmHostDelete and PvmTaskExit specifies length of tids array. For PvmHostAdd specifies number of times to notify.
Tids for PvmHostDelete and PvmTaskExit is an array of length cnt of task or pvmd TIDs to be notified about. The array is not used with PvmHostAdd option.