Re: Timer Implementation



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
.



Relevant Pages

  • Re: Timer Implmentation
    ... 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 ... Oto start and stop timer implementation ...
    (comp.unix.programmer)
  • Re: Timer Implmentation
    ... 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 ...
    (comp.unix.programmer)
  • Re: Timer Implmentation
    ... 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 ...
    (comp.unix.programmer)
  • Re: Timer Implmentation
    ... 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 ...
    (comp.unix.programmer)
  • Re: XMLhttp request problem
    ... > It is considerably easier to say "just make sure to use a different ... > from its cache in response to a request in a later one. ... and a second request goes out with the same millisecond timestamp is ... >> all the javascript for the original poster. ...
    (comp.lang.javascript)