Chris said:
This behaviour is not something you can rely on. Sometimes the PID of B
will be less than that of A, and sometimes the gap will be greater or
smaller.
I'm not counting on that. Actually, in some tests I ran, B was 5-8 PID
numbers higher than A, which I figure was because of other programs working
in the background, for example, I had several loops running in other bash
shells that would reprint info every X seconds. And, yes, if A has a high
enough PID, then B's will be back at the bottom of the list.
My implication was that there was at least one process that was launched and
given a PID between A and B.
Hal
P.S. What I'm more concerned is that, after months of overwork, my brain is
so fried that when I pick a random number out of my head, it turns out to
be an obscure science fiction reference connected to Saucer C57D. Am I so
exhausted my brain is retreating into all the old sf films I watched
growing up? -- and even more so is that I notice it when re-reading my
post!