This is bash running on OS/X. The pv command is "pipeviewer", which invoked -L1 limits throughput to 1 byte per second. Using two windows, first I chanted
ps -l in window 2. The result is as seen below, and is the base case of two bash shells running.
508% ps -l
UID PID PPID F CPU PRI NI SZ RSS WCHAN S ADDR TTY TIME CMD
501 36186 36185 4006 0 31 0 2435468 1056 - S+ add8a80 ttys000 0:00.20 -bash
501 46127 46126 4006 0 31 0 2435468 1336 - S c9f7540 ttys001 0:00.04 -bash Then I ran this in window 1 who | pv -L1 -q | tee /dev/tty |wc -l while running the ps command in window 2.
509% ps -l
UID PID PPID F CPU PRI NI SZ RSS WCHAN S ADDR TTY TIME CMD
501 36186 36185 4006 0 31 0 2435468 1056 - S add8a80 ttys000 0:00.22 -bash
501 46184 36186 4006 0 31 0 2427104 348 - S+ 8bf7d20 ttys000 0:00.01 pv -q -L1
501 46185 36186 4006 0 31 0 2434756 436 - S+ add8000 ttys000 0:00.00 tee /dev/tty
501 46186 36186 4006 0 31 0 2434768 440 - S+ ca02540 ttys000 0:00.00 wc -l
501 46127 46126 4006 0 31 0 2435468 1336 - S c9f7540 ttys001 0:00.04 -bash
As you can see, there are 5 processes running, of which three are the pv, tee and wc subshells. Since the PIDs are in ascending order, that is the order of creation.