ch3 - Chapter 3: Processes Chapter Chapter 3: Processes s...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 3: Processes Chapter 3: 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
3.2 Silberschatz, Galvin and Gagne ©2005 th Chapter 3: Processes Chapter 3: Processes Process Concept Process Scheduling Operations on Processes Cooperating Processes Interprocess Communication Communication in Client-Server Systems
Background image of page 2
3.3 Silberschatz, Galvin and Gagne ©2005 th Process Concept Process Concept An operating system executes a variety of programs: Batch system – jobs Time-shared systems – user programs or tasks Textbook uses the terms job and process almost interchangeably Process – a program in execution; process execution must progress in sequential fashion System and user processes execute concurrently A process includes: program code (text section) program counter stack data section A program is a passive entity, a process is an active entity. A program becomes a process when an executable file is loaded into memory.
Background image of page 3

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

View Full DocumentRight Arrow Icon
3.4 Silberschatz, Galvin and Gagne ©2005 th Process in Memory Process in Memory
Background image of page 4
3.5 Silberschatz, Galvin and Gagne ©2005 th Process State Process State As a process executes, it changes state new : The process is being created running : Instructions are being executed waiting : The process is waiting for some event to occur (e.g I/O ends) ready : The process is waiting to be assigned to a process terminated : The process has finished execution
Background image of page 5

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

View Full DocumentRight Arrow Icon
3.6 Silberschatz, Galvin and Gagne ©2005 th Diagram of Process State Diagram of Process State
Background image of page 6
3.7 Silberschatz, Galvin and Gagne ©2005 th Process Control Block (PCB) Process Control Block (PCB) Information associated with each process Process state Program counter CPU registers CPU scheduling information Process priority, pointers to scheduling queues,. .. Memory-management information Base and limit registers, page and segment tables,. .. Accounting information Amount of CPU and real time used, time limits process numbers,. .. I/O status information List of I/O devices allocated, a list of open files,. ..
Background image of page 7

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

View Full DocumentRight Arrow Icon
3.8 Silberschatz, Galvin and Gagne ©2005 th Process Control Block (PCB) Process Control Block (PCB)
Background image of page 8
3.9 Silberschatz, Galvin and Gagne ©2005 th CPU Switch From Process to Process CPU Switch From Process to Process
Background image of page 9

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

View Full DocumentRight Arrow Icon
3.10 Silberschatz, Galvin and Gagne ©2005 th Process Scheduling Queues Process Scheduling Queues Job queue – set of all processes in the system Ready queue – set of all processes residing in main memory, ready and waiting to execute, stored as a linked list. Device queues – set of processes waiting for an I/O device. Each device has its own device queue Processes migrate among the various queues
Background image of page 10
3.11 Silberschatz, Galvin and Gagne ©2005 th Ready Queue And Various I/O Device Queues Ready Queue And Various I/O Device Queues
Background image of page 11

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

View Full DocumentRight Arrow Icon
3.12 Silberschatz, Galvin and Gagne ©2005 th Representation of Process Scheduling Representation of Process Scheduling
Background image of page 12
3.13 Silberschatz, Galvin and Gagne ©2005
Background image of page 13

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

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

This note was uploaded on 03/21/2010 for the course CS 145 taught by Professor Markjan during the Spring '10 term at Abilene Christian University.

Page1 / 56

ch3 - Chapter 3: Processes Chapter Chapter 3: Processes s...

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

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