Re: Interval Timers on Windows
- From: Bernard Chan <cbkihong@xxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 08:06:25 +0800
Martijn Lievaart wrote:
On Sun, 29 Apr 2007 19:43:18 +0800, Bernard Chan wrote:
This subroutine is what was immediately called from thread->new(). In
the test, both the sender and receiver are on localhost so there should
not be any packet transit issue.
Perl threading is reasonably slow, and I don't know about the granularity
of taskswitches. Maybe you should test this first without threads to see
if threading itself isn't the issue.
The same script with single-threaded ualarm() does not have the same issue
on Linux. The major problem I have is that Windows cannot use it. So I'm
trying to look for a solution for Windows machines.
If I use fork() instead of threading, I cannot share variables between them
(on Windows). Or are there mechanisms for addressing shared variables issue
without threads?
Thanks.
--
Regards,
Bernard Chan
--
Posted via a free Usenet account from http://www.teranews.com
.
- References:
- Interval Timers on Windows
- From: Bernard Chan
- Re: Interval Timers on Windows
- From: Brian Wakem
- Re: Interval Timers on Windows
- From: Martijn Lievaart
- Re: Interval Timers on Windows
- From: Bernard Chan
- Re: Interval Timers on Windows
- From: Martijn Lievaart
- Interval Timers on Windows
- Prev by Date: Where are good places to post resumes?
- Next by Date: FAQ 4.71 How do I determine whether a scalar is a number/whole/integer/float?
- Previous by thread: Re: Interval Timers on Windows
- Next by thread: FAQ 4.40 What is the difference between $array[1] and @array[1]?
- Index(es):
Relevant Pages
|
|