Re: [gtk-list] Re: Signals in Gtk+



On 14 Sep 1998, Sascha Ziemann wrote:

> Tim Janik <timj@gtk.org> writes:
> 
> | since you use system calls like select() or alarm() for your timers
> | anyways, the highest accuracy to gain is 20ms or 50Hz on intel and
> | 10ms or 100Hz on alpha, iirc. 
> 
> How did you get this values? Can you give me some hints about this
> limitations?

hm, after i had to look them up again, i stand corrected:

linux-2.0.33/include/linux/timex.h:
> The HZ variable establishes the timer interrupt frequency, 100 Hz
> for the SunOS kernel, 256 Hz for the Ultrix kernel and 1024 Hz for the
> OSF/1 kernel.

linux-2.0.33/include/asm-i386/param.h:
> #define HZ 100

linux-2.0.33/include/asm-alpha/param.h:
> # define HZ     1024

since the system call select() will reschedule if you provide
a timeout value upon the call, 2*1/HZ determines the minimum 
timout period possible, thus 20ms on intel and 1.95ms for alpha.

---
ciaoTJ



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