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»