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

Re: problem with usleep?

> I don't need a real time sleep, I just need to be sure that the process
> so I can give the cycles to another process.
> what sort of signal would interrupt usleep?  Is there a better way to do
> -Kevin

Depending on your application, perhaps you can use select() and sleep
until data is available instead of polling if you do that now.
Can you describe your application a little more?
(If you simply do a lot of calculations and don't have to wait for input
that won't help of course)