Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Perl threading stability?

by anonymized user 468275 (Curate)
on Jul 26, 2005 at 13:58 UTC ( [id://478195]=note: print w/replies, xml ) Need Help??


in reply to Perl threading stability?

It might be worth re-evaluating your approach to fork before grasping for threads modules. Especially if using Solaris, the IPC set of modules, notably IPC::SysV and IPC::Semaphore may be the most pertinent low-overhead support for fork.

Moreover, there is ample guidance for using the low-level system facilities the above IPC modules give you access to in the Programming Perl book ISBN 0596000278

One world, one people

Replies are listed 'Best First'.
Re^2: Perl threading stability?
by guice (Scribe) on Jul 26, 2005 at 20:48 UTC

    Thanks, the main reason about a jump into threads, vs fork(), was purely due to data sharing. I can run the script just find using a bunch of fork() and Parallel::ForkManager does makes things easier.

    The problem I kept running into is data sharing. The ability to maintain variable state throughout each thread. But would appear this is the biggest hog/limitation within Perl threading.

    -- philip
    We put the 'K' in kwality!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-25 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found