Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Process as daemon, communicate back

by HeatSeekerCannibal (Beadle)
on Dec 21, 2007 at 16:16 UTC ( [id://658472]=note: print w/replies, xml ) Need Help??


in reply to Process as daemon, communicate back

I havent used that module, but if you're in *nix, you could use fork without much problem.

As for the InterProcess Communication (IPC) perlipc part, there are a number of options.

I'm partial towards Shared Memory, but it would involve semaphores. From my point of view its the most powerful solution, but consider if your problem merits the extra work (synchronization).

If you need sample code for forking child processes or shared memory, let me know. I must have some stored somewhere.

Heatseeker Cannibal
  • Comment on Re: Process as daemon, communicate back

Replies are listed 'Best First'.
Re^2: Process as daemon, communicate back
by owl1 (Initiate) on Dec 24, 2007 at 04:03 UTC

    Thanks Cannibal

    Sample code involving independent process accessing the same data with the use of "IPC::Shareable" would be helpful

    Also, the processes are all on the same machine

  • Thanks

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-26 05:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found