Re: How does this wait -n work to cap parallelism?
From:
Earnestly
Subject:
Re: How does this wait -n work to cap parallelism?
Date:
Mon, 29 Jul 2019 20:02:33 +0100
User-agent:
Mutt/1.12.1 (2019-06-15)
On Mon, Jul 29, 2019 at 02:38:48PM -0400, Greg Wooledge wrote:
> The same happens for my_job 7, and my_job 8. Each one is preceded by
> a wait -n, so it waits for one of the existing jobs to terminate before
> the new job is launched.
This aspect of the behaviour isn't in question.
Without reiterating too much, the question is about how that cap is
maintained after the 'wait -n' loop only ever experiences a single agent
while 'i' is incrementing, and only after 'i' has exceeded 'nproc' does
the parallelism start.