"be consistent" | |
PerlMonks |
Re: threads and low values with Time::HiRes::setitimerby liz (Monsignor) |
on Sep 06, 2003 at 08:25 UTC ( [id://289437]=note: print w/replies, xml ) | Need Help?? |
I guess I have two questions for you:
Then think about what you're trying to achieve. I would like to point out that Perl ithreads are not lightweight. Whatever you're trying to achieve is so very CPU dependent that you will never be able to do that in Perl 5 with the current ithreads implementation. Maybe you can do what you want using POE. Or try using C and POSIX threads. But even then you should realize that (most modern) thread implementations depend on a scheduler that decides to give the next timeslice to this or an other thread. Such a scheduler is usually dependent on some hardware timer event. Once you get close to the resolution of that timer event, you're going to see "disturbances". If you know any physics, think "waves" versus "photons". Hope this helps. Liz
In Section
Seekers of Perl Wisdom
|
|