I have read in the qnx tutorial about select function, but i have some doubts about the sample program that is given in the tutorial. The tutorial says that :
/This example opens a console and a serial port for
read mode, and calls select() with a 5 second timeout.
It waits for data to be available on either descriptor/
FD_ZERO( &rfd );
FD_SET( console, &rfd );
FD_SET( serial, &rfd );
my question is where does the waitting occurs? and why?
Please refer to this link:
qnx.com/developer/docs/qnx_6 … elect.html
Thanks in advance…