Chapter03-OS7e - Operating Systems: Internals andDesign...

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

View Full Document Right Arrow Icon
Chapter 3 Process  Description and  Control n Seventh Edition n By William Stallings Operating  Systems: Internals  and Design  Principles
Background image of page 1

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

View Full DocumentRight Arrow Icon
Operating Systems: Internals and Design Principles The concept of process is fundamental to the structure of  modern computer operating systems. Its evolution in analyzing  problems of synchronization, deadlock, and scheduling in  operating systems has been a major intellectual contribution of  computer science. WHAT CAN BE AUTOMATED?:  THE COMPUTER SCIENCE AND  ENGINEERING RESEARCH STUDY,  MIT Press, 1980
Background image of page 2
Summary of Earlier  Concepts n A computer platform  consists of a collection of  hardware resources n Computer applications  are developed to perform  some task n It is inefficient for  applications to be written  directly for a given  hardware platform n The OS was developed to  provide a convenient,  feature-rich, secure, and  consistent interface for  applications to use n We can think of the OS as  providing a uniform,  abstract representation of  resources that can be  requested and accessed by  applications
Background image of page 3

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

View Full DocumentRight Arrow Icon
OS Management of  Application Execution n Resources are made available to multiple  applications n The processor is switched among multiple  applications so all will appear to be  progressing n The processor and I/O devices can be used  efficiently
Background image of page 4
Process Elements n Two essential elements of a process are: n When the processor begins to execute the program code, we refer to  this executing entity as a  process
Background image of page 5

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

View Full DocumentRight Arrow Icon
Process Elements n While the program is executing, this process can be uniquely  characterized by a number of elements, including:
Background image of page 6
Process  Control  Block § Contains the process elements § It is possible to interrupt a  running process and later resume  execution as if the interruption  had not occurred § Created and managed by the  operating system § Key tool that allows support for  multiple processes
Background image of page 7

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

View Full DocumentRight Arrow Icon
Process States
Background image of page 8
Process  Execution
Background image of page 9

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

View Full DocumentRight Arrow Icon
Traces of  Processes  of     Figure 3.2 n Each process runs to completion Figure 3.3
Background image of page 10
Combined  Trace of  Processes of        Figure  3.2 Figure 3.4
Background image of page 11

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

View Full DocumentRight Arrow Icon
Two-State Process Model n A process may be in one of two states: n running n not-running
Background image of page 12
Queuing Diagram
Background image of page 13

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

View Full DocumentRight Arrow Icon
Table 3.1   Reasons for  Process Creation
Background image of page 14
Process Creation
Background image of page 15

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

View Full DocumentRight Arrow Icon
Process Termination n There must be a means for a process to indicate its  completion n A batch job should include a HALT instruction or an  explicit OS service call for termination n For an interactive application, the action of the user will  indicate when the process is completed  (e.g. log off,  quitting an application)
Background image of page 16
Table   3.2 Reasons for  Process  Termination
Background image of page 17

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

View Full DocumentRight Arrow Icon
Five-State Process Model
Background image of page 18
Process States for Trace of  Figure 3.4
Background image of page 19

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

View Full DocumentRight Arrow Icon
Using Two Queues
Background image of page 20
Multiple  Blocked  Queues
Background image of page 21

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

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

This note was uploaded on 12/14/2011 for the course CS 490 taught by Professor Weisskop during the Fall '11 term at University of Alabama - Huntsville.

Page1 / 69

Chapter03-OS7e - Operating Systems: Internals andDesign...

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

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