Lecture5 - Processes Jobs Lecture 5 Jobs and Processes CS2042 UNIX Tools October 8 2008 Jobs and Processes Processes Jobs What is a Process

Info iconThis 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
Background image of page 1

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

View Full DocumentRight 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
Background 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
Background image of page 3

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

View Full DocumentRight 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
Background 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
Background image of page 5

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

View Full DocumentRight 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
Background image of page 6
Processes Jobs What is a Process?
Background image of page 7

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

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

This note was uploaded on 01/23/2009 for the course CS 2042 taught by Professor Mccourt during the Fall '08 term at Cornell University (Engineering School).

Page1 / 24

Lecture5 - Processes Jobs Lecture 5 Jobs and Processes CS2042 UNIX Tools October 8 2008 Jobs and Processes Processes Jobs What is a Process

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online