clarification about Linux Timers

From: nikhil bhargav (nikhilbhargav_nsit_at_indiatimes.com)
Date: 08/15/04


Date: 14 Aug 2004 20:06:56 -0700

hi all,

I have a query regarding real time timer provided by standard stock
Linux kernel. According to man page of setitimer(), linux gives one
single timer of granularity minimum of 10 millisecond to a user
process. In order to decrease this granularity of 10 ms, unless one
recompile the kernel with config option HERTZ set to 1. I am
developing a timer layer for a user level protocol stack on standard
linux kernel 2.4.20. I want to know if there is any way of
implementing timers which are not integer multiple s of 10 ms i.e.
like say 105 ms. Also could i get a timer of granularity less than 10
ms. The application could provide for timers which are integral
multiple of 10 but not something like 107 ms.

Please advice.

nikhil



Relevant Pages

  • Re: clarification about Linux Timers
    ... >> I have a query regarding real time timer provided by standard stock ... >> Linux kernel. ...
    (comp.os.linux.development.system)
  • Re: regression introduced by - timers: fix itimer/many thread hang
    ... What is worse, we can't just limit the granularity of itimers, because ... Implementations may place limitations on the granularity of timer values. ... clock or timer*function call. ...
    (Linux-Kernel)
  • Re: Is delphi a good introduction to programming?
    ... >Having added the timer and a suitably non-time consuming event ... That is interesting - it must be down to the granularity of the timer ... to result in my app consuming 92% of CPU time. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Turbos here... (or not)
    ... timer with a granularity smaller than one day units. ... For ridiculously mundane reasons, we did not want the download link to ...
    (borland.public.delphi.non-technical)
  • Re: Sending UDP packets at a specified rate
    ... non-real time os unless maybe you use a hardware timer and create an ... actually have that fine a granularity. ... Implementations may place limitations on the granularity of ... timer values. ...
    (comp.unix.programmer)