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

Re: Timers in user application.



On 7/23/05, Ranjith Ganesh R <ranjithg@xxxxxxxxxxxxxxx> wrote:

> My user application needs some ten timers to be used for data sharing and other timing outs. Since, we cant use the kernel timers for the user applications, could you please suggest any system calls or some methods to achieve the required one.? If so, please suggest the way, which we need to compile the timer code!

this can be done in user space itself.
you could maintain a list of timers that you need and use the
setitimer( ) call to register the timer with the least timeout in the
list.

beware that this requires implementing a sort of timer-library (with
timeout( ) and untimeout( ) calls at the least) in user space and
involves quite a bit of coding and testing.

HTH,
shreekanth

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/