Re: Interval Timers on Windows



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

.



Relevant Pages

  • Re: Details on delivering and managing application
    ... On Thu, 03 Feb 2005 15:47:29 GMT, Wade Humeniuk ... >> It seems some peaple forget how expensive spawning new proceses is ... Under windows process overhead is much higher so if you want to ... The newer Apache 2 uses a threading pool and is much faster. ...
    (comp.lang.lisp)
  • Re: apple mail as a usenet reader?
    ... handling of threading- for example, if you set it for threading ... e-mails it opens each e-mail in a separate window simultaneously. ... own windows rather than viewing them in the message pane below the ...
    (comp.sys.mac.system)
  • Re: user interface fails under UNIX (but works with Windows!)
    ... > A program I am writing, called TimeSleuth and available from ... > same program, however, works when run in Windows. ... Threading is one of the few areas which works ...
    (comp.lang.java.help)
  • Re: Rocket J. Squirrel-- repair registry
    ... I did answer a question about how to reinstall Windows, ... Chkdsk checks your hard disk for logical errors (misconfigurations of the ... file system) and for physical problems on the surface of your hard disk. ... Threading is easy to do: Just use the reply function of your newsreader and ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Can Somebody please explain
    ... Near the bottom it's got some bits about Windows Forms and threading. ... you're receiving callbacks then you'll run into problems displaying stuff - ... I am not able to display any of the messages on ...
    (microsoft.public.dotnet.general)