Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Perl threads loss of performance with system call

by daniel85 (Novice)
on Jul 11, 2021 at 17:29 UTC ( [id://11134920]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl threads loss of performance with system call
in thread Perl threads loss of performance with system call

Quite smoothly, but it exits before everything is terminated
  • Comment on Re^2: Perl threads loss of performance with system call

Replies are listed 'Best First'.
Re^3: Perl threads loss of performance with system call
by karlgoethebier (Abbot) on Jul 11, 2021 at 19:45 UTC

    Strange. On my Mac it works as designed. 50 threads and as I have 12 cores 4 x 12 plus 2. It can be seen in the output as well as in the process table. For the moment I’m at a loss.

    «The Crux of the Biscuit is the Apostrophe»

Re^3: Perl threads loss of performance with system call
by Anonymous Monk on Jul 14, 2021 at 04:54 UTC

    Uncommenting the wait_all line is necessary to ensure workers have completed and exited.

    MCE::Hobo->wait_all();

      No. It isn’t. Try it. I was quite surprised about the result.

      «The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-10-03 23:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (42 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.