[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sem should have a mix bg/fg mode

From: Shaya Potter
Subject: Re: sem should have a mix bg/fg mode
Date: Tue, 22 Mar 2022 23:20:20 +0200

disregard my previous email, unsure what I was doing wrong, but I tested it by hand and it work as expected in bg mode.

On Tue, Mar 22, 2022 at 10:25 PM Shaya Potter <spotter@gmail.com> wrote:
lets say one wants to run sem in a way that will create 1000 processes, perhaps they don't want to create so many at a time.

Currently one has a choice between --bg (default) which will run, create the 1000 processes and then run how many in parallel one desires.  one could specify --fg, but that will effectively only run one at a time.

I think there should be a mode that defaults to bg if a slot is available, otherwise blocks in fg, till a spot frees up and then backgrounds.  That way one could easily limit the number of processes being created to a manageable amount, not just the number of active processes.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]