[Lula] Perl and Sleep problem

John R. Hogerhuis jhoger at pobox.com
Tue Apr 15 00:01:59 EDT 2008


On Mon, Apr 14, 2008 at 8:21 PM, Samuel Gasster <muondude at yahoo.com> wrote:
> I have been asked to help debug a Perl script problem - but it may be in fact an OS problem.

I've never had this problem. It seems unlikely...

Are you sleeping on a scalar variable or a constant value? Are you
operating in a single thread? Are you dependent upon any XS code?

I guess you could try stuff:
Another way to sleep is to use select() routine with a timeout .
Another thing you could try: I tend to use the HiRes timer package.

Worse case, you could multiply your "delay time" by some value and
loop that amount of time on some busy wait. Interesting as a
diagnostic, anyway. Or you could system() out to some C routine that
you know does a proper delay.

http://malektips.com/xp_dos_0002.html

-- John.



More information about the Lula mailing list