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

Re: Interface status detection



"Muli B.Y." <mulix@ibm.net> writes:

> The minimal time resolution I'm talking about here is less than a
> second, and the optimal is instantaneous. 

What for?

> int main()
> {
> 	while (1)
> 	{
> 		sleep(1)
> 		do_some_quick_stuff();
> 	}
> 	return 0;
> }
> 
> Run this and talk to me in a couple of hours/ days/ months. 

It seems to me that regardless of how you implement it you are going
to end up with this. And I still don't think that doing "some quick
stuff" every second will fry my CPU.

-- 
Oleg Goldshmidt | BLOOMBERG L.P. (BFM) | oleg@bfr.co.il
"... We work by wit, and not by witchcraft;
 And wit depends on dilatory time." - W. Shakespeare.

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il