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

Re: Can we write multi-threaded scripts ?

by jimpudar (Pilgrim)
on Nov 05, 2018 at 17:32 UTC ( #1225281=note: print w/replies, xml ) Need Help??


in reply to Can we write multi-threaded scripts ?

You may also want to take a look at Mojo::IOLoop::Subprocess, new in Mojolicious 8.0.

This lets you use normal asynchronous programming style to spawn processes for background work.

If your work is not CPU bound, you may consider just using asynchronous calls in a single process (see Mojo::IOLoop).

Best

Jim

πάντων χρημάτων μέτρον έστιν άνθρωπος.

  • Comment on Re: Can we write multi-threaded scripts ?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2021-04-14 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?