Jan Kiszka wrote:
 > Gilles Chanteperdrix wrote:
 > > Hi,
 > > 
 > > after some tests, bug fixes and optimizations, here comes a second version 
 > > of 
 > > the patch-set adding select support to xenomai posix skin.
 > It's on my agenda for today or tomorrow to have a closer look at this.
 > Just one general question already: Why is it "select" and not "poll and
 > select"? Is it trivial to extend later on?

Because making an O(1) poll is impossible, when entering poll, you have
to scan the whole list of file descriptors for new descriptors, and this
will take O(n). In select implementation, this is done with bounded bit
operations so remains O(1). Of course, the downside is that you are
limited to FD_SETSIZE (that is 1024) descriptors, but I do not find this
limitation unbearable for real-time applications.

Anyway, you can implement poll in user-space to use select. I saw this
for instance in Asterisk sources.


                                            Gilles Chanteperdrix.

Xenomai-core mailing list

Reply via email to