Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by Zaxo (Archbishop)
on Aug 08, 2007 at 18:19 UTC ( #631362=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?)

The child gets a copy of the parent's vars but can never change the parent's copy. That's fundamental unix.

The parent can read data from a child through some IPC mechanism and make the change itself, but that won't change the copies already-launched children have. Yes, you need IPC.

Sysv IPC has a shared-memory facility which would seem to be just what you want, but sysv IPC is buggy with races and is rarely used.

After Compline,
Zaxo

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://631362]
help
Chatterbox?
[Discipulus]: oh windows platform burned many brains, even this i know by experience
[karlgoethebier]: Discipulus: but don't try the guitar. It will you sick for the rest of your life...
[karlgoethebier]: ...make..
[Discipulus]: oh for sure mario: listen to the whole color box: Goldberg Variations by glenn gould
[Discipulus]: hi karl, i played (well tried to) play the guitar since many years. it is something not natural for me: with the flute was love at first .. sound
[Discipulus]: iirc i took some interesting guitar link from your homenode

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2017-03-24 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (298 votes). Check out past polls.