CS703 - Advanced Operating Systems

Slides:



Advertisements
Similar presentations
Multiple Processor Systems
Advertisements

Real Time Scheduling.
1 Multiprocessor and Real-Time Scheduling Chapter 10.
Tasks Periodic The period is the amount of time between each iteration of a regularly repeated task Time driven The task is automatically activated by.
1 Multiprocessor and Real-Time Scheduling Chapter 10.
1 Multiprocessor and Real-Time Scheduling Chapter 10.
Tao Yang, UCSB CS 240B’03 Unix Scheduling Multilevel feedback queues –128 priority queues (value: 0-127) –Round Robin per priority queue Every scheduling.
Multiprocessor and Real-Time Scheduling Chapter 10.
5: CPU-Scheduling1 Jerry Breecher OPERATING SYSTEMS SCHEDULING.
1 Scheduling in Representative Operating Systems.
Informationsteknologi Tuesday, October 9, 2007Computer Systems/Operating Systems - Class 141 Today’s class Scheduling.
OS and the Computer System  Some OS programs exist permanently in the system area of the memory to monitor and control activities in the computer system.
Chapter 10 Multiprocessor and Real-Time Scheduling
Multiprocessor and Real-Time Scheduling
What is Concurrent Programming? Maram Bani Younes.
Computer System Architectures Computer System Software
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Lecture 5 Operating Systems.
OPERATING SYSTEMS CPU SCHEDULING.  Introduction to CPU scheduling Introduction to CPU scheduling  Dispatcher Dispatcher  Terms used in CPU scheduling.
Operating System Classification Single User, Multi-User, Simple Batch Processing, Multiprogramming, Multi tasking, Real Time Systems, Parallel Systems,
Multiple Processor Systems. Multiprocessor Systems Continuous need for faster and powerful computers –shared memory model ( access nsec) –message passing.
Chapter 10 Multiprocessor and Real-Time Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community.
IT320 OPERATING SYSTEM CONCEPTS Unit 6: Processor Scheduling September 2012 Kaplan University 1.
© Oxford University Press 2011 DISTRIBUTED COMPUTING Sunita Mahajan Sunita Mahajan, Principal, Institute of Computer Science, MET League of Colleges, Mumbai.
Chapter 10 Multiprocessor and Real-Time Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community.
Multiprocessor and Real-Time Scheduling Chapter 10.
Multiprocessor and Real-Time Scheduling
Chapter 101 Multiprocessor and Real- Time Scheduling Chapter 10.
1 Multiprocessor and Real-Time Scheduling Chapter 10 Real-Time scheduling will be covered in SYSC3303.
Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between.
1 Multiprocessor Scheduling Module 3.1 For a good summary on multiprocessor and real-time scheduling, visit:
ICOM Noack Scheduling For Distributed Systems Classification – degree of coupling Classification – granularity Local vs centralized scheduling Methods.
Group no.2 Presented to : Eng.Ahmed Hassan Sunday, March 04,2012.
Real time scheduling G.Anuradha Ref:- Stallings. Real time computing Correctness of the system depends not only on the logical result of computation,
For a good summary, visit:
SMP Basics KeyStone Training Multicore Applications Literature Number: SPRPxxx 1.
Page 1 2P13 Week 1. Page 2 Page 3 Page 4 Page 5.
CONCEPTS OF REAL-TIME OPERATING SYSTEM. OBJECTIVE  To Understand Why we need OS?  To identify Types of OS  To Define Real - Time Systems  To Classify.
Real-Time Operating Systems RTOS For Embedded systems.
Principles of Operating Systems Lecture 16 Abhishek Dubey Daniel Balasubramanian Real Time Scheduling Fall 2014.
Multiprocessor, Multicore, and Real-Time Scheduling Chapter 10
REAL-TIME OPERATING SYSTEMS
Principles of Operating Systems Lecture 16
Operating Systems Lecture 2.
Process Management Process Concept Why only the global variables?
Applied Operating System Concepts -
Processes and Threads Processes and their scheduling
Where are being used the OS?
Chapter 2 Scheduling.
Real-time Software Design
Chapter 10 Multiprocessor, Multicore and Real-Time Scheduling
Chapter 10 Multiprocessor, Multicore and Real-Time Scheduling
Operating System Concepts
OverView of Scheduling
Operating System Chapter 9. Multiprocessor and Real Time Scheduling
Operating Systems.
TDC 311 Process Scheduling.
What is Concurrent Programming?
CPU SCHEDULING.
Outline Scheduling algorithms Multi-processor scheduling
Threads Chapter 4.
Multiprocessor and Real-Time Scheduling
Chapter 6: CPU Scheduling
What is Concurrent Programming?
Subject Name: Operating System Concepts Subject Number:
CS703 – Advanced Operating Systems
Chapter 10 Multiprocessor and Real-Time Scheduling
CS703 - Advanced Operating Systems
Shortest-Job-First (SJR) Scheduling
CS703 - Advanced Operating Systems
Chapter 1: Introduction
Presentation transcript:

CS703 - Advanced Operating Systems By Mr. Farhan Zaidi

Lecture No. 18

Assignment of Processes to Processors Treat processors as a pooled resource and assign process to processors on demand Permanently assign process to a processor Known as group or gang scheduling Dedicate short-term queue for each processor Less overhead Processor could be idle while another processor has a backlog

Assignment of Processes to Processors Global queue Schedule to any available processor Master/slave architecture Key kernel functions always run on a particular processor Master is responsible for scheduling Slave sends service request to the master Disadvantages Failure of master brings down whole system Master can become a performance bottleneck

Assignment of Processes to Processors Peer architecture Operating system can execute on any processor Each processor does self-scheduling Complicates the operating system

Process Scheduling Single queue for all processes Multiple queues are used for priorities All queues feed to the common pool of processors

Thread Scheduling Executes separate from the rest of the process An application can be a set of threads that cooperate and execute concurrently in the same address space Threads running on separate processors yields a dramatic gain in performance

Multiprocessor Thread Scheduling Dedicated processor assignment Threads are assigned to a specific processor Dynamic scheduling Number of threads can be altered during course of execution

Load Sharing Load is distributed evenly across the processors No centralized scheduler required Use global queues Most commonly used paradigm. Used by Linux, Windows and several UNIX flavors on multi-processor machines

Disadvantages of Load Sharing Central queue needs mutual exclusion May be a bottleneck when more than one processor looks for work at the same time Preemptive threads are unlikely resume execution on the same processor Cache use is less efficient If all threads are in the global queue, all threads of a program will not gain access to the processors at the same time

Gang Scheduling Simultaneous scheduling of threads that make up a single process Useful for applications where performance severely degrades when any part of the application is not running Threads often need to synchronize with each other

Dedicated Processor Assignment When application is scheduled, its threads are assigned to processors using a graph theoretic optimization algorithm on the control flow graph (CFG) of the application where each node in the CFG is a thread Disadvantages Some processors may be idle No multiprogramming of processors

Real-Time Systems Correctness of the system depends not only on the logical result of the computation but also on the time at which the results are produced Tasks or processes attempt to control or react to events that take place in the outside world These events occur in “real time” and tasks must be able to keep up with them

Hard real-time systems If deadlines are not met, results are catastrophic Examples Air traffic control Aircraft auto-pilot

Soft real-time systems The system tries to meet all deadlines in a best effort manner, and succeeds in meeting most of them. Overall %age of met deadlines is very high on the average Missing a few occasionally does not result in catastrophic conditions

Characteristics of Real-Time Operating Systems Deterministic Operations are performed at fixed, predetermined times or within predetermined time intervals Concerned with how long the operating system delays before acknowledging an interrupt and there is sufficient capacity to handle all the requests within the required time

Characteristics of Real-Time Operating Systems Responsiveness How long, after acknowledgment, it takes the operating system to service the interrupt Includes amount of time to begin execution of the interrupt Includes the amount of time to perform the interrupt Effect of interrupt nesting

Characteristics of Real-Time Operating Systems User control User specifies priority Specify paging What processes must always reside in main memory Disks algorithms to use Rights of processes