Lecture 6. Introduction to Process Management COP 3353 Introduction to UNIX. 1. Multi-xxxx. The UNIX Operating System provides an environment in which multiple “processes” can run concurrently
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Introduction to Process Management
COP 3353 Introduction to UNIX
More about a Process
ps: displays information about processes
Some common options:[-e] or [-A]: all processes
[-l] longer version
[u] current user report
[-aux] more complete listing
&: running a process (job) in the background
example: pp3 &
jobs: shows you all your background processes
fg: puts a background job into the foreground
CTRL-z: stops a process
bg: puts a job into the background
CTRL-c: kill the foreground job
kill: kill a specific job (-9 typically kills most processes)
sleep: causes the current process to sleep for the time indicated.
example: sleep 15; ls
sleep 10; ls &
stop: can be used to stop a specific job running in the background
nice: run a job with a lower (nicer) priority level ranges are -20 (highest) to +20 (lowest). Default is 0. Default nice is usually 4.
example: nice +10 pp3