Chapter 101 Multiprocessor and Real- Time Scheduling Chapter 10.

Slides:



Advertisements
Similar presentations
Multiple Processor Systems
Advertisements

Real Time Scheduling.
WHAT IS AN OPERATING SYSTEM? An interface between users and hardware - an environment "architecture ” Allows convenient usage; hides the tedious stuff.
Chorus and other Microkernels Presented by: Jonathan Tanner and Brian Doyle Articles By: Jon Udell Peter D. Varhol Dick Pountain.
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.
Chapter 13 Embedded Systems
1 Multiprocessor and Real-Time Scheduling Chapter 10.
1 Multiprocessor and Real-Time Scheduling Chapter 10.
CS 3013 & CS 502 Summer 2006 Scheduling1 The art and science of allocating the CPU and other resources to processes.
Uniprocessor Scheduling Chapter 9. Aim of Scheduling The key to multiprogramming is scheduling Scheduling is done to meet the goals of –Response time.
1: Operating Systems Overview
Tao Yang, UCSB CS 240B’03 Unix Scheduling Multilevel feedback queues –128 priority queues (value: 0-127) –Round Robin per priority queue Every scheduling.
Introduction to Operating Systems – Windows process and thread management In this lecture we will cover Threads and processes in Windows Thread priority.
Cs238 CPU Scheduling Dr. Alan R. Davis. CPU Scheduling The objective of multiprogramming is to have some process running at all times, to maximize CPU.
Chapter 13 Embedded Systems
Multiprocessor and Real-Time Scheduling Chapter 10.
CS 104 Introduction to Computer Science and Graphics Problems Operating Systems (2) Process Management 10/03/2008 Yang Song (Prepared by Yang Song and.
Chapter 11 Operating Systems
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.
Wk 2 – Scheduling 1 CS502 Spring 2006 Scheduling The art and science of allocating the CPU and other resources to processes.
Job scheduling Queue discipline.
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.
1 Chapter 13 Embedded Systems Embedded Systems Characteristics of Embedded Operating Systems.
Chapter 10 Multiprocessor and Real-Time Scheduling
Multiprocessor and Real-Time Scheduling
Operating System 10 MULTIPROCESSOR AND REAL-TIME SCHEDULING
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.
LOGO OPERATING SYSTEM Dalia AL-Dabbagh
Chapter 10 Multiprocessor and Real-Time Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community.
Chapter 6 Scheduling. Basic concepts Goal is maximum utilization –what does this mean? –cpu pegged at 100% ?? Most programs are I/O bound Thus some other.
Chapter 10 Multiprocessor and Real-Time Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community.
Page 1 2P13 Week 9. Page 2 Table 9.2 Scheduling Criteria User Oriented, Performance Related Turnaround time This is the interval of time between the submission.
Multiprocessor and Real-Time Scheduling Chapter 10.
Multiprocessor and Real-Time Scheduling
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.
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
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,
Introduction to Embedded Systems Rabie A. Ramadan 5.
For a good summary, visit:
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 2: The Linux System Part 3.
Chapter 3: Processes. 3.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts - 7 th Edition, Feb 7, 2006 Chapter 3: Processes Process Concept.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
Copyright © Curt Hill More on Operating Systems Continuation of Introduction.
1 Uniprocessor Scheduling Chapter 3. 2 Alternating Sequence of CPU And I/O Bursts.
Threads, SMP, and Microkernels Chapter 4. Processes and Threads Operating systems use processes for two purposes - Resource allocation and resource ownership.
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
Process Management Process Concept Why only the global variables?
Chapter 2 Scheduling.
Threads, SMP, and Microkernels
TDC 311 Process Scheduling.
CPU SCHEDULING.
Threads Chapter 4.
Multiprocessor and Real-Time Scheduling
Operating System 10 MULTIPROCESSOR AND REAL-TIME SCHEDULING
CS703 – Advanced Operating Systems
Chapter 10 Multiprocessor and Real-Time Scheduling
CS703 - Advanced Operating Systems
CS703 - Advanced Operating Systems
Chapter 3: Processes Process Concept Process Scheduling
Presentation transcript:

Chapter 101 Multiprocessor and Real- Time Scheduling Chapter 10

2 of 30 Classifications of Multiprocessor Loosely coupled multiprocessor each processor has its own memory and I/O channels Functionally specialized processors such as I/O processor controlled by a master processor Tightly coupled multiprocessing processors share main memory controlled by operating system

Chapter 103 of 30 Independent Parallelism Separate processes running No synchronization Example is time sharing average response time to users is less

Chapter 104 of 30 Very Coarse Parallelism Distributed processing across network nodes to form a single computing environment Good when there is infrequent interaction among processes overhead of network would slow down communications

Chapter 105 of 30 Coarse Parallelism Similar to running many processes on one processor except it is spread to more processors Multiprocessing

Chapter 106 of 30 Medium Parallelism Parallel processing or multitasking within a single application Single application is a collection of threads Threads usually interact frequently

Chapter 107 of 30 Process Scheduling Single queue for all processes Multiple queues are used for priorities All queues feed to the common pool of processors Specific scheduling disciplines is less important with more than on processor

Chapter 108 of 30 Threads 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

Chapter 109 of 30 Multiprocessor Thread Scheduling Load sharing processes are not assigned to a particular processor Gang scheduling a set of related threads is scheduled to run on a set of processors at the same time

Chapter 1010 of 30 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

Chapter 1011 of 30 Load Sharing Load is distributed evenly across the processors Assures no processor is idle No centralized scheduler required Use global queues

Chapter 1012 of 30 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

Chapter 1013 of 30 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

Chapter 1014 of 30 Dedicated Processor Assignment When application is scheduled, its threads are assigned to a processor Some processors may be idle Avoids process switching

Chapter 1015 of 30 Dynamic Scheduling Number of threads in a process are altered dynamically by the application Operating system adjust the load to improve use assign idle processors new arrivals may be assigned to a processor that is used by a job currently using more than one processor hold request until processor is available new arrivals will be given a processor before existing running applications

Chapter 1016 of 30 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 process must be able to keep up with them

Chapter 1017 of 30 Real-Time Systems Control of laboratory experiments Process control plants Robotics Air traffic control Telecommunications

Chapter 1018 of 30 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

Chapter 1019 of 30 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

Chapter 1020 of 30 Characteristics of Real- Time Operating Systems User control specify paging what processes must always reside in main memory rights of processes

Chapter 1021 of 30 Characteristics of Real- Time Operating Systems Reliability degradation of performance may have catastrophic consequences most critical, high priority tasks execute

Chapter 1022 of 30 Features of Real-Time Operating Systems Fast context switch Small size Ability to respond to external interrupts quickly Multitasking with interprocess communication tools such as semaphores, signals, and events Files that accumulate data at a fast rate

Chapter 1023 of 30 Features of Real-Time Operating Systems Preemptive scheduling base on priority immediate preemption allows operating system to respond to an interrupt quickly Minimization of intervals during which interrupts are disabled Delay tasks for fixed amount of time Special alarms and timeouts

Chapter 1024 of 30 Real-Time Scheduling Static table-driven determines at run time when a task begins execution Static priority-driven preemptive traditional priority-driven scheduler is used Dynamic planning-based Dynamic best effort

Chapter 1025 of 30 Deadline Scheduling Real-time applications are not concerned with speed but with completing tasks Scheduling tasks with the earliest deadline minimized the fraction of tasks that miss their deadlines includes new tasks and amount of time needed for existing tasks

Chapter 1026 of 30 Scheduling of Real-Time Tasks AB B A C C D D E E Arrival times Starting deadline Requirements A AB B C C D D E E(missed) Arrival times Service Starting deadline Earliest deadline A CED

Chapter 1027 of 30 Scheduling of Real-Time Tasks AB B A C C D D E E Arrival times Starting deadline Requirements A AB B C C D D E E Arrival times Service Starting deadline Earliest deadline with unforced idle times B CED

Chapter 1028 of 30 Scheduling of Real-Time Tasks AB B A C C D D E E Arrival times Starting deadline Requirements A AB B C C D D E E (missed)(missed) Arrival times Service Starting deadline First-come first-served (FCFS) A CD

Chapter 1029 of 30 UNIX Scheduling Set of 160 priority levels divided into three priority classes Basic kernel is not preemptive Priority Class Global Value Scheduling Sequence Real-time first last Kernel Time-shared

Chapter 1030 of 30 Windows NT Priority Relationship Process Priority Thread’s Base Priority Thread’s Dynamic Priority base priority highest above normal normal below normal lowest