select() and serial drivers

Antti P Miettinen antti.p.miettinen at nokia.com
Mon Jul 17 20:15:33 UTC 2000


> If you're starting to write a new application, in many cases it's better
> to use one thread per socket/tty instead of using select().  A call to
> select() is quite expensive (and not only on RTEMS, but on vxWorks and
> Linux, too).

Hmm.. thats a surprise to me. How does the price of a context switch
compare?

What are the alternatives for waiting for multiple IO sources? I've
grown to like single threaded applications :)

Antti Miettinen
Nokia Networks




More information about the users mailing list