Unix processes are instances of an executed program. UNIX, being a multi task operating system handles thousands of processes at a time. We are able to check on what processes are currently running by typing ps at the UNIX prompt. Depending on the options used with the ps command, we can see different outcomes such as $ps -ef | more. This will list all the processes in the system. Some items you might see using the ps command are PID which is the process ID number, TT or TTY shows the controlling terminal for the process. If there is no controlling terminal then a question mark is used.
o - Process is running on a processor
s – Sleeping: process is waiting for an event to complete
r - run-able: process is on run queue.
z - Zombie state: process terminated and parent not waiting.
t - Process is stopped, either by a job control signal or because it is being traced.
To kill a process you could type kill 101. The '101' would be the pid (process ID) number. If the......
Join Now or Login to view the rest of this paper.
Approximate Word Count: 592
Approximate Pages: 3 (260 words per double-spaced page) |