Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: having a container on perl VMs is good ?

by Corion (Patriarch)
on Nov 11, 2022 at 09:42 UTC ( [id://11148132]=note: print w/replies, xml ) Need Help??


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

Are you looking for threads?

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.

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

Replies are listed 'Best First'.
Re^2: having a container on perl VMs is good ?
by xiaoyafeng (Deacon) on Nov 11, 2022 at 09:52 UTC
    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

      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://11148132]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-19 10:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found