[Purdue-pm] Threads and forks

Dave Jacoby jacoby.david at gmail.com
Thu Oct 22 06:55:28 PDT 2020


I recently saw someone talk about MCE, or Multi Core Engine.

https://metacpan.org/pod/MCE

I need to spend more time with it some day

On Thu, Oct 22, 2020, 8:40 AM Joe <gizmo at purdue.edu> wrote:

> On 10/21/20 9:10 PM, Turner, Howard Robert wrote:
> > Greetings again everyone.
> >
> > Looking for some advice. I'm writing a small program that talks to a
> > webserver and ends waiting for a connection back from the webserver.
> > Problem is I can only figure out to have the call back handled or my
> > Perl program continue processing but not both.
> >
> > Started reading the Perl threads tutorial but it suggests not using
> > threads and then started reading about fork instead. So a little
> > overwhelmed in figuring out which one is "the right way".
> >
> > Anyone have suggestions and/or tutorials they'd suggest reviewing beyond
> > the ones on perldoc?
>
> Rob,
>
> In the past for async stuff I've used:
>
> https://metacpan.org/pod/Parallel::ForkManager
>
> https://metacpan.org/pod/IO::Async
>
> Lots of stuff in the IO::Async distro, like Promises and such.
>
>
>
> As for web stuff...
>
> Mojo is really good for that.
>
> https://metacpan.org/pod/Mojo::UserAgent
>
> https://metacpan.org/pod/Mojo::DOM
>
> https://metacpan.org/pod/Mojo::Promise
>
>
> As with all things Perl, There's More Than One Way To Do It.
>
> Although..we try to push the Modern Way and Best Practices ;-)
>
> joe
>
> _______________________________________________
> Purdue-pm mailing list
> Purdue-pm at pm.org
> https://mail.pm.org/mailman/listinfo/purdue-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/purdue-pm/attachments/20201022/b15e2aad/attachment-0001.html>


More information about the Purdue-pm mailing list