Re: Timer Implementation
- From: Chris Smith <cdsmith@xxxxxxx>
- Date: Mon, 23 Apr 2007 07:02:39 -0600
Madhur <madhurrajn@xxxxxxxxx> wrote:
I would like to know if there exists the best algorithm for timer
implementation. A request arrives requesting for a timer fire for
about 100 millisecond, my implementation should fire exactly at 100
milliseconds and return the object which had request for the sleep
time. I am looking for a very efficient algorithm as i have hundreds
of objects, which arrive simultaneously.
You've got the wrong newsgroup. Timing is not possible in a purely
computational system, so it is always going to rely on hardware, and
thus generally on the operating system. If you need accurate timing as
you imply here, you should ask in a newsgroup appropriate to programming
for the operating system you are interested in. Some operating systems
will be better at this than others; those operating systems that
specialize in making stuff like this work are called "real-time".
--
Chris Smith
.
- References:
- Timer Implementation
- From: Madhur
- Timer Implementation
- Prev by Date: Touring-completeness
- Next by Date: Re: Timer Implementation
- Previous by thread: Timer Implementation
- Next by thread: Re: Timer Implementation
- Index(es):
Relevant Pages
|