in reply to threads and low values with Time::HiRes::setitimer
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: threads and low values with Time::HiRes::setitimer
by revdiablo (Prior) on Sep 06, 2003 at 18:02 UTC | |
by liz (Monsignor) on Sep 07, 2003 at 13:37 UTC | |
|
Re: Re: threads and low values with Time::HiRes::setitimer
by deliria (Chaplain) on Sep 06, 2003 at 11:42 UTC |