Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: having a container on perl VMs is good ?

by xiaoyafeng (Deacon)
on Nov 11, 2022 at 09:52 UTC ( [id://11148133]=note: print w/replies, xml ) Need Help??


in reply to Re: having a container on perl VMs is good ?
in thread having a container on perl VMs is good ?

basically, what I mean is multi interpreters is running on one process.

If you want to have a central thing for keeping values across interpreters, look at a database, memcached or Redis maybe? I'm not sure what problem you are trying to solve.

multi interpreters on one process have many advantages: 1. all the way you point out has data copy, 2. real threads on windows but not fork-like one.




I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

  • Comment on Re^2: having a container on perl VMs is good ?

Replies are listed 'Best First'.
Re^3: having a container on perl VMs is good ?
by Corion (Patriarch) on Nov 11, 2022 at 10:30 UTC

    If you want multiple interpreters running in one process, that is what threads gives you. See also threads::shared, and also Thread::Csp for a more shared-nothing approach.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-19 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found