lecture5 - Processes Jobs Lecture 5 Jobs and Processes...

Info icon This preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Processes Jobs Lecture 5: Jobs and Processes CS2042 - UNIX Tools October 8, 2008 Jobs and Processes
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Processes Jobs What is a Process? Manipulating Processes Stopping Processes Lecture Outline 1 Processes What is a Process? Manipulating Processes Stopping Processes 2 Jobs What is a Job? Manipulating Jobs Jobs and Processes
Image of page 2
Processes Jobs What is a Process? Manipulating Processes Stopping Processes Intro to Processes Definition: A process is an instance of a running program. More specific than ”a program” because it’s being executed! More specific than ”a running program” because the same program can be run multiple times simultaneously! Example: Many users could be simultaneously running ssh to connect to other servers. In this case, each instance of ssh is a separate process. Jobs and Processes
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Processes Jobs What is a Process? Manipulating Processes Stopping Processes Process Identification How do we tell one process from another? Each process is assigned a unique ”Process ID” (or PID) when it is created. These PIDs are used to differentiate between separate instances of the same program. How do we find out which processes are running, and with which PIDs? The Process Snapshot (PS) Command ps [options] Reports a snapshot of the current running processes, including PID Jobs and Processes
Image of page 4
Processes Jobs What is a Process? Manipulating Processes Stopping Processes More PS Options Default: ps Lists processes started by the user from the current terminal All Processes: ps -e Lists every process currently running on the system Verbose: ps -ely Gives more info about your processes than you’ll ever need See manpages for details - options for the BSD version are different! Jobs and Processes
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Processes Jobs What is a Process? Manipulating Processes Stopping Processes Lecture Outline 1 Processes What is a Process? Manipulating Processes Stopping Processes 2 Jobs What is a Job? Manipulating Jobs Jobs and Processes
Image of page 6
Processes Jobs What is a Process?
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern