Does select() poll underneath or does it wait for some sort of system
event? If it does poll, anyone know what the rate is?
In my situation, I have to use select() rather than poll() because all
my input isn't STREAMS based. What if I maybe constantly called select
() with a small timeout rather than a long one ..? What I'm looking
for is a way to get a better reaction time to incoming data.
The problem is that I'm in the position of trying to get an app that
using select() for input to run as close (in speed) to an older app
that uses an IPC kernel driver for input. What I'm seeing is that if I
run some high-throughput tests with both programs, the select() one is
slower by a good amount. 'quantify' shows me that it is spending a lot
of time idle in select() - dropping through to 'poll' for about 5% of
it's overall CPU time. I'm wondering if (if select is polling) it is
probable that it's going like 'check', then data arrives, 'check again'
so I lose a little time on each chunk of data. The driver-based one
would be immediate.
Thanks for any help,
Mike
Sent via Deja.com http://www.deja.com/
Before you buy.