Building Interactive ApplicationsMultiplexing PVM with other Communication
PVM task may need to service input from several sources
- xep program input from PVM and X-Windows
- console input from keyboard and PVM
Can poll both sources, using pvm_trecv for PVM
- wastes some cpu, but simple, easy to implement
Can wait for messages on PVM sockets
- int nfds = pvm_getfds( int **fds)
- returns FDs of sockets used by PVM
- use these with select( )