[ee122] Question regarding how to implement a timeout
a_kilman at berkeley.edu
Thu Nov 29 00:15:58 PST 2007
Quick question.. how should we implement a timeout? One obvious way
would be to use time.h in a while loop.. but just from glancing at my
processor usage that seems to eat a lot of cycles.. would select() be a
better solution (although its not needed) ? The reason I ask is that I
think in Beej's guide somewhere it mentioned sending the process to
sleep until some activity occurred.
Thanks in advance.
More information about the ee122