On Mon, Jan 31, 2022 at 06:11:44PM +0100, Emanuel Berg via Users list for the GNU Emacs text editor wrote: > tomas wrote: > > > An obvious approach is to have each sentinel call a "global" > > sentinel which checks whether there are any processes still > > running (akin to your myrun, only that it just gets called > > after each process's termination). > > Won't that move the "busy wait" to the global sentinel? No. Assume you are interested in 12 processes: that "global sentinel" would be called 12 times. The busy wait, as envisioned, gets called 10 times /per second/. Cheers -- t