This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Non-blocking read too slow on file/serial stream


dear all,

I am doing a 'read' operation on a non-blocking FILE stream attached to the serial port.
Every non-empty read (about 120 bytes) is performed in less than 200 us. However, if no data in buffer, read returns -1 but the operation takes 1500 us or more in average. Too much for my application...


Any explanation?
Any workaround?

Best regards
Jesús
Spain


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]