Re: timer implementation
From: Adie (a_usenetizen_at_hotmail.com)
Date: 04/29/03
- Previous message: David Schwartz: "Re: dlopen searching application?"
- In reply to: Valentin Nechayev: "Re: timer implementation"
- Next in thread: Valentin Nechayev: "Re: timer implementation"
- Reply: Valentin Nechayev: "Re: timer implementation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 29 Apr 2003 10:48:06 +0100
Valentin Nechayev <netch@segfault.kiev.ua> wrote:
>>>> Srinivas Mudigonda wrote:
>
>SM> I am a novice unix programmer. I would like to know, how to implement
>SM> multiple timers for a process. both in user process and kernel timers. Any
>SM> leads about doing this would be a great favour to me.
>
>Make queue for requested events, sorted by their times. Even if timer
>is used for periodical polling of something, this polling is treated as event.
>If you want to use signals, use setitimer() for call a signal for the next
>time it is requested. Otherwise, program can sleep on select() or something
>similar with high resolution timeout.
>For a ready-to-use library with its, see ISC eventlib (separately or in BIND
>product).
Hi, do you know if there ia a timer api that can be used in Linux and
Unix from C++? I'd like to implement some sort of time out for my
sockets program.
- Previous message: David Schwartz: "Re: dlopen searching application?"
- In reply to: Valentin Nechayev: "Re: timer implementation"
- Next in thread: Valentin Nechayev: "Re: timer implementation"
- Reply: Valentin Nechayev: "Re: timer implementation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|