Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Approaches to concurrency

by rhesa (Vicar)
on Feb 09, 2009 at 15:39 UTC ( #742464=note: print w/replies, xml ) Need Help??


in reply to Approaches to concurrency

I think the forks module deserves a mention here. It's a "drop-in replacement for Perl threads using fork()".

Replies are listed 'Best First'.
Re^2: Approaches to concurrency
by BrowserUk (Pope) on Feb 09, 2009 at 15:50 UTC

    ...and is slower, more cpu intensive, more memory hungry and threads.

    Shared variables are "achieved" by serialising them with Storable and transmitting them to all the other threads</strike</> processes via sockets.

    That's like putting a single lane chicane on a multi-lane highway. Necessary occasionally, but totally defeating the purpose of having multiple lanes.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      But it'd work on non-threaded perls, and that's the use case for it. It certainly wouldn't make sense to replace actual threads with forks, especially on windows :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://742464]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2016-10-01 18:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (6 votes). Check out past polls.