Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: a scheduler

by charnos (Friar)
on Sep 18, 2002 at 13:09 UTC ( [id://198818]=note: print w/replies, xml ) Need Help??


in reply to re: a scheduler
in thread a scheduler

Before diving into this code, I have a few things to mention:
  • Instead of starting a new thread with correct code, update the existing thread, informing others of the change as an addendum (davorg already considered this node for that reason).
  • In the previous node, pope mentioned that POE::Kernel uses Time::HiRes for scheduling, which should probably accomodate your needs.
  • In a few places your script has lines to the effect of
    print "\n=====================================================\n";
    which can be accomplished with more readability as print "\n", "=" x 55, "\n";, using Perl's repetition operator (x).

Beyond these minor editing considerations, the code looks good (preliminarily, as I said, I haven't dived into it yet, just had a few points to bring up). :)

Replies are listed 'Best First'.
Re: Re: Re: a scheduler
by fredalbrecht (Novice) on Sep 18, 2002 at 15:24 UTC
    Sorry for my protocol errors, this is the first time I submit to this forum. Don't get me wrong, the code works ... up to a point. I can schedule events with millisecond accuracy using Time::Hires, but the code dies unexpectedly with a segmentation fault, and that is what's bugging me. :) fred

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://198818]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-29 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found