Hi all,
I am reading data from multiple serial ports. At present I am using Custom signal handler (by setting sa_handler) to compare and wake threads based on file descriptor information. I was searching for a way out to have individual threads with unique signal handlers, in this regard I found that select system call is to be used. Now I have following questions:
- If I am using a thread (Qt) then where do I put the select system call to monitor the serial port?
- Is the select system call thread safe?
- Is it CPU intensive because there are many things happening in my app including GUI update?
Please do not mind, if you find these questions ridiculous. I have never used such a mechanism for serial communication. Also