[plug] Scheduling Problems

Leon Brooks leon at brooks.smileys.net
Wed May 17 17:31:09 WST 2000


Brad Campbell wrote:
> Lets say I'm polling 7 Units, on a standard kernel, I can poll
> these 13 times a second, which is 91 loops a second.

Do the RS-485 units themselves reply instantly? Is there any arbitration
or anti-collision delays inherent in RS-485? (I ask from a position of
general ignorance about RS-485) If you are having a problem with
select(), would you consider a less couth method, to wit, using read()
and write() on the port as an unbuffered fd? Or is there a risk of the
write() blocking? And if so, is forking and having a reader process
separate from the writer even less couth?

-- 
If at first you don't succeed, try a shorter bungee.



More information about the plug mailing list