Sujata Ray Dey Maheshtala College Computer Science Department

Slides:



Advertisements
Similar presentations
Processes Management.
Advertisements

A. Frank - P. Weisberg Operating Systems Process Scheduling and Switching.
Chapter 3: Processes. 3.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Objectives Understand Process concept Process scheduling Creating.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Processes.
CMPT 300: Operating Systems I Ch 3: Processes Dr. Mohamed Hefeeda
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Processes.
Operating System Concepts
CE Operating Systems Lecture 5 Processes. Overview of lecture In this lecture we will be looking at What is a process? Structure of a process Process.
Process Management. Processes Process Concept Process Scheduling Operations on Processes Interprocess Communication Examples of IPC Systems Communication.
Chapter 3: Processes Process Concept Process Scheduling Operations on Processes Interprocess Communication Examples of IPC Systems Communication in Client-Server.
Exec Function calls Used to begin a processes execution. Accomplished by overwriting process imaged of caller with that of called. Several flavors, use.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-1 Process Concepts Department of Computer Science and Software.
Processes: program + execution state
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Processes.
Chapter 2 Processes Processes Topics Process Concept Process Scheduling Operations on Processes Cooperating Processes Interprocess Communication.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Processes Process Concept Process Scheduling Operations on Processes Cooperating.
Processes. Chapter 3: Processes Process Concept Process Scheduling Operations on Processes Cooperating Processes Interprocess Communication Communication.
Computer Studies (AL) Operating System Process Management - Process.
Processes – Part I Processes – Part I. 3.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Review on OSs Upon brief introduction of OSs,
11/13/20151 Processes ICS 240: Operating Systems –William Albritton Information and Computer Sciences Department at Leeward Community College –Original.
CS212: OPERATING SYSTEM Lecture 2: Process 1. Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Process-Concept.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Processes.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 4: Processes Process Concept Process Scheduling Operations on Processes Cooperating.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Process-Concept.
3.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Q:Process Stateu 有哪些 ? 何種情形下會做 transition? As a process executes, it.
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Processes. Process Concept Process Scheduling Operations on Processes Interprocess Communication Communication in Client-Server Systems.
 Process Concept  Process Scheduling  Operations on Processes  Cooperating Processes  Interprocess Communication  Communication in Client-Server.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Processes.
Chapter 3: Processes. 3.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts - 7 th Edition, Feb 7, 2006 Chapter 3: Processes Process Concept.
Chapter 3: Processes. 3.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 3: Processes Process Concept Process Scheduling Operations.
ITC250 Copyright 2008© ITC 1 Assessment -4- Choose the correct answer.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 8 Processes II Read Ch.
1 Module 3: Processes Reading: Chapter Next Module: –Inter-process Communication –Process Scheduling –Reading: Chapter 4.5, 6.1 – 6.3.
Operating System Components) These components reflect the services made available by the O.S. Process Management Memory Management I/O Device Management.
Lecture 3 Process.
Processes and threads.
Chapter 3: Processes.
Chapter 3: Process Concept
Topic 3 (Textbook - Chapter 3) Processes
Operating System Concepts
Operating Systems (CS 340 D)
Lecture Topics: 11/1 Processes Process Management
Process Management Presented By Aditya Gupta Assistant Professor
Chapter 3: Process-Concept
Processes Overview: Process Concept Process Scheduling
Chapter 3: Process Concept
Chapter 3: Processes Source & Copyright: Operating System Concepts, Silberschatz, Galvin and Gagne.
Chapter 3: Processes.
Intro to Processes CSSE 332 Operating Systems
Operating Systems (CS 340 D)
Chapter 3: Processes.
Process Virtualization. Process Process is a program that has initiated its execution. A program is a passive entity; whereas a process is an active entity.
Operating Systems CPU Scheduling.
Chapter 4: Processes Process Concept Process Scheduling
Lecture 2: Processes Part 1
ICS 143 Principles of Operating Systems
Recap OS manages and arbitrates resources
Operating Systems Lecture 5.
Process & its States Lecture 5.
Mid Term review CSC345.
Chapter 3: Processes.
Operating System Concepts
Processes Hank Levy 1.
Sujata Ray Dey Maheshtala College Computer Science Department
Chapter 3: Processes.
Outline Chapter 2 (cont) Chapter 3: Processes Virtual machines
Chapter 3: Processes Process Concept Process Scheduling
Chapter 3: Process Concept
Presentation transcript:

Sujata Ray Dey Maheshtala College Computer Science Department Processes Sujata Ray Dey Maheshtala College Computer Science Department

Processes Process Concept Process State Process Control Block Process Scheduling Schedulers Context Switch Idea on Co-operating processes Processes Sujata Ray Dey (Comp. Sc.)

Process Concept Process – Program at the time of execution Process Vs Programs – Program consists of Instructions in any Programming Language Process consists of instructions in machine code Program reside in Secondary storage devices Process reside in Main memory Processes Sujata Ray Dey (Comp. Sc.)

Process State State of Process is determined by the current activity of the process. New : Process is being created Running : Process is been executing Waiting : Process is waiting for some event to occur Ready : Process is waiting for processor Terminate : Process has finished execution Processes Sujata Ray Dey (Comp. Sc.)

Diagram of Process State Processes Sujata Ray Dey (Comp. Sc.)

Process Control Block (PCB) Each process is represented by its own process control block. A PCB contains – Process state – running, waiting etc. Program Counter – location of next executable instruction. CPU registers CPU scheduling information Memory management information Accounting information I/O status information Processes Sujata Ray Dey (Comp. Sc.)

Diagram of a PCB Processes Sujata Ray Dey (Comp. Sc.)

CPU switch from Process to Process Processes Sujata Ray Dey (Comp. Sc.)

Process Scheduling Maximize CPU use Process schedulers select the process to assign CPU Scheduling queues – Job queue : set of all processes in the system Ready queue : set of all processes residing in main memory and waiting for execution Device queue : set of processes waiting for an I/O device Processes migrate among various queues Processes Sujata Ray Dey (Comp. Sc.)

Queuing Diagram Processes Sujata Ray Dey (Comp. Sc.)

Schedulers Short-term scheduler (or CPU scheduler) – selects which process should be executed next and allocates CPU It is invoked frequently  must be fast Long-term scheduler (or job scheduler) – selects which processes should be brought into the ready queue It is invoked infrequently  may be slow The long-term scheduler controls the degree of multiprogramming Processes can be described as either: I/O-bound process – spends more time doing I/O than computations, many short CPU bursts CPU-bound process – spends more time doing computations; few very long CPU bursts Processes Sujata Ray Dey (Comp. Sc.)

Addition of Mid-Term Scheduler The process is swapped out and swapped in by the medium term scheduler. Used to reduce the degree of multiprogramming. Process can be removed from memory and can be reintroduced into memory and execution can be continued where it left off. Processes Sujata Ray Dey (Comp. Sc.)

Context Switch When CPU switches to another process, the system must save the state of the old process and load the saved state for the new process via a context switch Context of a process represented in the PCB Context-switch time is overhead; the system does no useful work while switching The more complex the OS and the PCB  the longer the context switch Time dependent on hardware support Some hardware provides multiple sets of registers per CPU  multiple contexts loaded at once Processes Sujata Ray Dey (Comp. Sc.)

Co-operating Processes Independent – A process is independent if it cannot affect or affected by the other processes executing in the system. Co-operating - Any process shares data with other processes is a co-operating process. Need for process co-operation : Information sharing Computation speedup Modularity Convenience Processes Sujata Ray Dey (Comp. Sc.)

Co-operating Processes contd.. Information sharing – An environment is provided to allow concurrent access to the shared resources. Computation Speed up – Parallel execution is done by breaking a task into several subtasks. Modularity – Construct a system in modular fashion. Convenience – Even an individual user may have many tasks to work on at one time. Eg, user may be editing, printing, compiling in parallel Processes Sujata Ray Dey (Comp. Sc.)

Thank You Processes Sujata Ray Dey (Comp. Sc.)