UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
BOTCLEAN
ENCORE5
CLEAN
ENCORE
BOX
ILLUSTRATION
GO
Background processing is the ability to run a
job unattended. Several jobs may be run at once in
the background, however, only one may run in the
foreground. Note processes B1, B2, and F1.
FOREGROUND | BACKGROUND
|
B1
B2
|
|
F1
|
|
|
|
|
To perform process control from the terminal level or from your
program using system calls you need to know the PID!
B3
|
B4
The UNIX command for obtaining process status information is ps.
To obtain information about your current processes, enter
the ps command on the terminal.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type ps
Please type ps
I guess I must type this for you:
$PROMPT$
FORGET1
Observe the result on the terminal!
ps
PID TTY TIME COMMAND
46 tty03 8:15 csh
44 tty03 8:10 cron
87 tty03 9:15 B1
89 tty03 9:20 B2
91 tty03 9:25 B3
99 tty03 9:39 ps
Note the asynchronous finish of the processes ...
F2
|
|
|
|
|
Note that by using the process id's, the processes
can be sent signals, killed or moved from background
to foreground and vice versa!