Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Parallel::ForkManager and vars from the parent script - are they accessible? (or do I need inter process communication?)

by isync (Hermit)
on Aug 08, 2007 at 19:03 UTC ( [id://631378]=note: print w/replies, xml ) Need Help??


in reply to Parallel::ForkManager and vars from the parent script - are they accessible? (or do I need inter process communication?)

For the interested: Currently I am test-driving IPC::Shareable to tie persistent variables in shared memory.
  • Comment on Re: Parallel::ForkManager and vars from the parent script - are they accessible? (or do I need inter process communication?)

Replies are listed 'Best First'.
Re^2: Parallel::ForkManager and vars from the parent script - are they accessible? (or do I need inter process communication?)
by perrin (Chancellor) on Aug 08, 2007 at 19:13 UTC
    IPC::Shareable is kind of slow, but it may not matter for your data. If you run into trouble with it, MLDBM::Sync is an easy way to share a hash on disk.
      Slow!? I thought it is fast, because everything is held in memory... (the on-disk approach is what I am trying to circumnavigate here...)
        It's slow because it has to serialize and deserialize the entire hash through Storable every time you want to read or write it to/from the shared memory slot. It's fine for a small hash, but a large one will get slow.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2024-04-18 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found