[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

select() and serial drivers



> 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