Process Description and Control. Process concepts n Definitions – replaces task, job – program in execution – entity that can be assigned to and executed.

Slides:



Advertisements
Similar presentations
Process Description and Control
Advertisements

Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Chapter 3 Process Description and Control
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
6/9/2015B.Ramamurthy1 Process Description and Control B.Ramamurthy.
Process Description and Control
Process Description and Control Module 1.0. Major Requirements of an Operating System Interleave the execution of several processes to maximize processor.
Process Description and Control Chapter 3. Major Requirements of an Operating System Interleave the execution of several processes to maximize processor.
Figure 2.8 Compiler phases Compiling. Figure 2.9 Object module Linking.
Page 1 Processes and Threads Chapter 2. Page 2 Processes The Process Model Multiprogramming of four programs Conceptual model of 4 independent, sequential.
Page 1 Processes and Threads Chapter Processes 2.2 Threads 2.3 Interprocess communication 2.4 Classical IPC problems 2.5 Scheduling.
1 What is a Process ? The activity of program execution. Also called a task or job Has associated with it: Code Data Resources A State An executing set.
1 Process Description and Control Chapter 3. 2 Process Management—Fundamental task of an OS The OS is responsible for: Allocation of resources to processes.
CSCE 351: Operating System Kernels
Ceng Operating Systems Chapter 2.1 : Processes Process concept Process scheduling Interprocess communication Deadlocks Threads.
Processes and Resources
CSSE Operating Systems
1 Chapter 4 Threads Threads: Resource ownership and execution.
1 Process Description and Control Chapter 3 = Why process? = What is a process? = How to represent processes? = How to control processes?
Process Description and Control A process is sometimes called a task, it is a program in execution.
Using Two Queues. Using Multiple Queues Suspended Processes Processor is faster than I/O so all processes could be waiting for I/O Processor is faster.
Chapter 51 Threads Chapter 5. 2 Process Characteristics  Concept of Process has two facets.  A Process is: A Unit of resource ownership:  a virtual.
Process Description and Control
Process Description and Control Chapter 3. Major Requirements of an OS Interleave the execution of several processes to maximize processor utilization.
Process Description and Control
Operating System 3 PROCESS DESCRIPTION AND CONTROL.
Chapter 3 Process Description and Control Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Processes and Threads.
Chapter 3 Process Description and Control Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Chapter 41 Processes Chapter 4. 2 Processes  Multiprogramming operating systems are built around the concept of process (also called task).  A process.
Chapter 3 Advanced Operating System
Operating System 3 PROCESS DESCRIPTION AND CONTROL.
Chapter 3 Process Description and Control
1 Chapter 2.1 : Processes Process concept Process concept Process scheduling Process scheduling Interprocess communication Interprocess communication Threads.
Threads G.Anuradha (Reference : William Stallings)
Processes and Process Control 1. Processes and Process Control 2. Definitions of a Process 3. Systems state vs. Process State 4. A 2 State Process Model.
Chapter 2 Processes and Threads Introduction 2.2 Processes A Process is the execution of a Program More specifically… – A process is a program.
Politecnico di Milano © 2001 William Fornaciari Operating System Processes Lecturer: William Fornaciari Politecnico di Milano
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Process-Concept.
Process Description and Control Chapter 3. Source Modified slides from Missouri U. of Science and Tech.
Threads-Process Interaction. CONTENTS  Threads  Process interaction.
1 Process Description and Control Chapter 3. 2 Requirements of an Operating System Interleave the execution of multiple processes to maximize processor.
Chapter 2 Process Management. 2 Objectives After finish this chapter, you will understand: the concept of a process. the process life cycle. process states.
Process Description and control G.Anuradha (Referred from william stallings and galvin 8 th edition)
CSNB224 – AAG 2007 Process Description and Control Chapter 3.
1 Process Description and Control Chapter 3. 2 Process A program in execution An instance of a program running on a computer The entity that can be assigned.
Process Control Management Prepared by: Dhason Operating Systems.
1 Threads, SMP, and Microkernels Chapter 4. 2 Process Resource ownership - process includes a virtual address space to hold the process image Scheduling/execution-
Advanced Operating Systems CS6025 Spring 2016 Processes and Threads (Chapter 2)
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Process concept.
Intro to Processes CSSE 332 Operating Systems
2P13 Week 2.
Threads, SMP, and Microkernels
Mid Term review CSC345.
Process Description and Control
Process Description and Control
Process Description and Control
Threads Chapter 4.
Chapter 2 Processes and Threads 2.1 Processes 2.2 Threads
Process Description and Control
Operating System 3 PROCESS DESCRIPTION AND CONTROL
Process Description and Control
Process Description and Control
Process Description and Control
Process Description and Control
Chapter 2 Processes and Threads 2.1 Processes 2.2 Threads
CS510 Operating System Foundations
Process Description and Control
Process Description and Control
Presentation transcript:

Process Description and Control

Process concepts n Definitions – replaces task, job – program in execution – entity that can be assigned to and executed on a processor n Process states – running – ready – blocked n The main responsibility of an OS is to control the execution of processes

OS objectives and processes n Operating systems must interleave the execution of a number of processes – to maximize processor use – while providing reasonable response rate n Operating systems must allocate resources to processes – based on priorities – while avoiding deadlock n Operating systems may support – interprocess communications – user creation of processes

A two-state process model Enter Dispatch Exit Pause Not running Running n Process creation – new batch job – interactive login – OS created to provide a service – spawned by existing process n Process termination – normal completion – abnormal end (abend) t time related t protection error t program error t data error t I/O failure t memory error

Process state transitions with suspend and resume Running Blocked Ready Suspended blocked Suspended ready I/O or event completion Suspend Resume Suspend Resume Suspend I/O or event completion Dispatch Timer- runout I/O or event wait A C T I V E SWAPPED

Other related concepts n Suspend and swapping – not immediately available – may or may not be waiting for event or I/O – blocked may be independent of suspend – process was placed on suspend by an agent n OS and processes – the OS schedules and dispatches processes for execution by the processor, and allocates resources to processes – OS is the entity that manages the use of system resources by processes

OS control structures n What does the OS needs (a) to be able to control processes and (b) manage resources for them? – memory tables – I/O tables – file tables – process tables n These tables are maintained by the OS n How does it know what and how to create? – Initialization and configuration

Process control structures n What is the physical manifestation of a process? – a program or set of programs – a set of data locations for variables and constants – memory to hold programs and data – stack for procedure calls, parameter passing n PCB - Process Control Block – entity that defines a process to the OS – collection of process attributes: process identification, processor state and process control information.

OS core, kernel or supervisor n Execution modes: system or user modes n OS core or kernel – Process management t process creation and termination t process scheduling and dispatching t process switching t process synchronization and support for inter-process communication t management of PCBs – Memory management – I/O management – Support functions

Is the Operating System a process? Process switching U1U1.. U2U2 U3U3 UnUn O1O2 O3 On P1P1 P2P2 P3P3.. Kernel PnPn Process switching OS.. P1P1 P2P2 P3P3 PnPn 1. No, separate 2.No, subroutines 3. Yes

Processes and Threads n Process is a unit of: – resource ownership – dispatching n Threads – only an unit of dispatching – inside a process – saves time to create, switch and terminate n A good example: a file server process – each request as a thread – the process spawn the threads