Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 chilling in the Monastery: (9)
As of 2024-06-19 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.