----- Original Message -----
From: "Bill Stennett" <[EMAIL PROTECTED]>
To: "Activeperl" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 10:12 AM
Subject: multi processor support in AS perl for win NT4


> Hi All
>
> We use AS perl 5.6 on windows NT4.
>
> I have a long running process (it takes about half an hour)
which indexes
> entries in a glossary and I need to speed it up if possible.
I switched to
> a dual processor system and one thing I noticed is that when
the process is
> running the NT task manager only shows one processor doing
significant work.
> Is AS perl multiprocessor aware by default or do I have to
download a
> different version?
>
> TIA
>
> Bill
In most multiprocessor environments, the operating system
decides which processor does what. The problem for the operating
system is that it is difficult for it to decide
which applications can do parallel processing, and which can't.
If the program is doing sequential processing of records, and
manipulating data based on the sequence of records, using both
processors could screw up the results. Since you write your perl
scripts, perl cannot know what the intent of your program is,
and the operating system cannot know what perl's intent is, so a
multiprocessor environment will only use a single processor to
run the program. If, however, two programs were run, or two
processes run under the same program, one process or program
could run on one processor, the other process or program on the
other processor, the net result being that the two programs
would complete in somewhat more than half the time they would
take if they ran sequentially.

ego
Edward G. Orton, GWN Consultants Inc.
Phone: 613-764-3186, Fax: 613-764-1721
email: [EMAIL PROTECTED]

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to