Timers to threads

From: Banu R Reefath (reefathbanur_at_myw.ltindia.com)
Date: 03/31/05

  • Next message: Coywolf Qi Hunt: "Re: [patch] oom lca -- fork bombing killer"
    Date:	Thu, 31 Mar 2005 11:52:04 +0530
    To: <linux-kernel@vger.kernel.org>
    
    

     Dear Sir/Mam
      We are using Linux in one of our embedded products.This is the first time we are working in this Platform.We have few doubts regarding implementing s/w timers & how to pass the timer interrupts to threads .
     In net we coudnt find exactly what we want .Could you please help us in this regard?

    Ideas from us
    1. If we want a thread to execute at particular intervals should it be done only through
    usleep() system call ? Will it be accurate enough ?
    Because it is a real time design for a Medical Product.

    2. If we use kernel timers to invoke at particular time intervals using add_timer () how to pass on to the application that the time has elapsed?

    A piece of code demonstartion would be much more helpful to us

    Thanks & Regards,
    Reefath Banu Rajali
    Software Engineer
    Larsen & Toubro
    Embedded Systems & Software
    Mysore
    India

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Coywolf Qi Hunt: "Re: [patch] oom lca -- fork bombing killer"

    Relevant Pages

    • Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
      ... and nobody from the latency ... 250/300 seems like a reasonable comprimise to me. ... *does* it cause (in visible effect, not "timers are less granular"). ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [ANNOUNCE] ktimers subsystem
      ... These timers may open up new ... > application (in kernel or user space), ... Tim Bird ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: MemoryAccessViolationException and multimedia timer problem
      ... these solutions just too unpredictable - even using modest time intervals ... I found the multimedia timers to work a treat (barring this annoying ... I think there might be similar timing features in DirectX (DirectSound ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: [ANNOUNCE] ktimers subsystem
      ... These timers may open up new ... > degradation for ANY app on ANY platform? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
      ... >> That's a very subjective viewpoint. ... We have had complaints about repeating timers not keeping good time. ... expected frequency. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)