[TriLUG] Perl and SMP
Len Boyle
Len.Boyle at sas.com
Mon Jun 4 18:16:47 EDT 2007
Andy
If I understand your question correctly, you could use multiple sessions. Of couse unless they depend on sharing memory the sessions could be on different machines.
A while ago I installed Oracle on an Mainframe IBM VM system. The Oracle system used a set of different userids for what might be different process on an *nix system. The Oracle system did use shared memory.
I have seen apps that might use a set of userids to act as a pools for worker tasks.
Maybe Grids? MPI?
len
________________________________
From: trilug-bounces at trilug.org on behalf of Andrew C. Oliver
Sent: Mon 6/4/2007 3:08 PM
To: Triangle Linux Users Group discussion list
Subject: Re: [TriLUG] Perl and SMP
Being a big dumb person...is there any technology that uses multiple
processors without forking into processes or launching threads?
-Andy
Andrew Perrin wrote:
> On Mon, 4 Jun 2007, Michael Tharp wrote:
>
>> Andrew Perrin wrote:
>>> I fear I know the answer to this already, but...
>>>
>>> is there any way to get perl to use the multiple processors on an SMP
>>> machine (running linux, of course), short of fork()ing distinct processes?
>>> I've got a text processing program chugging along on one processor with
>>> three more sitting there idle, and it would be nice to see it Just Work
>>> (tm) by using all four. But it's not worth rewriting the program to fork
>>> into separate threads.
>>>
>> You've already exhausted your only two choices: either spawn threads
>> (Perl threading), or spawn processes (fork). You can't make a single
>> thread use more than one processor.
>
> That's what I figured, thanks.
>
>
> ----------------------------------------------------------------------
> Andrew J Perrin - andrew_perrin (at) unc.edu - http://perrin.socsci.unc.edu <http://perrin.socsci.unc.edu/>
> Assistant Professor of Sociology; Book Review Editor, _Social Forces_
> University of North Carolina - CB#3210, Chapel Hill, NC 27599-3210 USA
> New Book: http://www.press.uchicago.edu/cgi-bin/hfs.cgi/00/178592.ctl
>
>
>
>
--
Buni Meldware Communication Suite
http://buni.org <http://buni.org/>
Multi-platform and extensible Email,
Calendaring (including freebusy),
Rich Webmail, Web-calendaring, ease
of installation/administration.
--
TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
More information about the TriLUG
mailing list