Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: Threads memory consumption

by zwon (Monsignor)
on Dec 06, 2013 at 15:07 UTC ( #1065987=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Threads memory consumption
in thread Threads memory consumption

Yes you can, see IPC::Shareable and IPC::ShareLite, but I don't recommend you to use these -- refactor your program so it wouldn't require shared variables, or use some message passing module instead.


Comment on Re^5: Threads memory consumption
Re^6: Threads memory consumption
by mojo2405 (Acolyte) on Dec 08, 2013 at 09:18 UTC
    Can you recommend on a message passing module I can use ?
      It depends on your environment and requirements. Generally if you have any messaging system deployed (ActiveMQ, RabbitMQ, Spread Toolkit, Redis, etc) just use it. Or you can try ZMQ
Re^6: Threads memory consumption
by mojo2405 (Acolyte) on Dec 19, 2013 at 19:09 UTC
    Hey, Do you know if I can share a hash ? or even an object ? I want to share and lock an object that exist inside a hash - if accessed.. Thanks

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2014-12-27 06:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls