Linux supports job control, i.e. you can start a process in the background, or make a foreground process run in the background, or make a background process run in the foreground, etc.
Did any V7 or earlier version of UNIX support such job control?
Retrocomputing Stack Exchange is a question and answer site for vintage-computer hobbyists interested in restoring, preserving, and using the classic computer and gaming systems of yesteryear. It only takes a minute to sign up.
Sign up to join this communityUNIX V6 allows starting processes in the background with the ampersand character:
Use, duplication or disclosure is subject to
restrictions stated in Contract with Western
Electric Company, Inc.
# LS -L /BIN &
3
# TOTAL 392
-RWXRWXR-X 1 BIN 1514 JUL 18 09:33 AR
-RWXRWXR-X 1 BIN 5748 JUL 18 08:59 AS
-RWXRWXR-X 1 BIN 8780 JUL 18 09:33 BAS
-RWXRWXR-X 1 BIN 152 JUL 18 09:35 CAT
-RWXRWXR-X 1 BIN 7186 JUL 18 09:35 CC
...
Note the process number (3) and the prompt before the output from the background process starts. SIGSTOP/SIGCONT signals haven't been invented yet (see the switch
statement in psig()
function around the middle of the file), so it isn't possible to stop the background process without killing it. Also there is no way to "background" an already running process or to bring a background process to foreground.
fg
andbg
, was first implemented in BSD 4.1. There was also a competing System V kind of job control called shell layers that first appeared in System V R2.