





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: Operating Systems; Subject: Computer/Information Sciences; University: University of Delaware; Term: Spring 2009;
Typology: Study notes
1 / 9
This page cannot be seen from the preview
Don't miss anything!






A process is a running program. The cpu can be used by one process while another is waiting on I/O. Multiprogramming – can switch from one program to another (interleave them). To user seems like more than one program running at a time on a single cpu. With a multiprocessor can run more than one at a time.
A process is an executing program with values for program counter, registers and variables. Also owns resources. Example: 3 processes A, B, C A B C Time
During a process switch the state of the current process must be saved. Then the new process can be given time on the cpu – context switch. The process that was taken off the cpu can be loaded back on some time later. Must save program counter, contents of registers, etc. to do so. Takes some amount of time.
OS Must have a way to create and terminate processes. Start off with initial process (init, pid 1). Then create more processes to form a tree. How to create a process
0 - sched 1 - init inetd sshd tcsh Use ps and ptree commands
Normal voluntary exit Error voluntary exit involuntary fatal error killed by another process free up resources remove process table entry How many processes can a system support?