Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Can we write multi-threaded scripts ?

by jimpudar (Pilgrim)
on Nov 05, 2018 at 17:32 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1225281]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found