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

Re: Can we write multi-threaded scripts ?

by zentara (Cardinal)
on Nov 05, 2018 at 13:16 UTC ( [id://1225261]=note: print w/replies, xml ) Need Help??


in reply to Can we write multi-threaded scripts ?

Hi, I've written alot of threaded programs and there are many pitfalls to watch out for. My ultimate observation is that threaded programs are useful only when you need to easily share variables in realtime between threads, using threads::shared. Otherwise, forking solutions using IPC::SysV's shared memory segments, is probably preferrable. Threads just make it easy to share variables, and its tempting to use what is easy.

Remember, its also officially discouraged to consume alcohol, but how many people do it? :-)


I'm not really a human, but I play one on earth. ..... an animated JAPH
  • Comment on Re: Can we write multi-threaded scripts ?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2026-01-17 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (121 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.