blocking on socket I/O and classic API

Chris Johns chrisj at rtems.org
Wed Apr 13 02:00:45 UTC 2016


On 13/04/2016 11:52, Adit Sahasrabudhe wrote:
>
> A follow on question: we tried using mqueue instead of the classic api queue, since it is supposed to be compatible with select, but for some reason the file descriptor returned on mq_open is too large for select to accept.
>

The FDSET size is defined in newlib and is low, I think 64. If you have 
a bunch of files or sockets open you can exceed this limit.

> Then we thought about using poll instead of select (better performance anyway), and though I can see poll in the source code, it is not contained in the librtemscpu library in our bsp. Should I be able to use poll? We are on an altera cyclone v board.

I would consider using threads as per my other email.

Chris



More information about the users mailing list