in reply to Perl threads loss of performance with system call

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re: Perl threads loss of performance with system call

Replies are listed 'Best First'.
Re^2: Perl threads loss of performance with system call
by bliako (Abbot) on Jul 12, 2021 at 19:01 UTC
    whenever the operating system "puts the process to sleep,"

    the sleep is done inside each thread and then via a backticks-system command, I can't see that affecting the parent process.

Re^2: Perl threads loss of performance with system call
by Anonymous Monk on Jul 11, 2021 at 21:17 UTC
    If that would be the case, wouldn't the example with sleep 1 run slower than the sleep 0.001? But here seems to be the opposite.