Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    One drawback of this solution is that it may happen that some workers finish while the others still have jobs. Commented Nov 3, 2021 at 23:31
  • 1
    It's not a 'may happen' thing: it's a certainty. The wait will always wait for the slowest process. And that's completely okay as long as we can wait for that slowest job to finish. Commented Dec 17, 2021 at 22:44