Page 1 2P13 Week 10. Page 2 Page 3 Static table-driven approaches performs a static analysis of feasible schedules of dispatching result is a schedule.

Slides:



Advertisements
Similar presentations
I/O Management and Disk Scheduling
Advertisements

I/O Management and Disk Scheduling
1 Chapter 11 I/O Management and Disk Scheduling Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and.
Chapter 4 Device Management and Disk Scheduling DEVICE MANAGEMENT Content I/O device overview I/O device overview I/O organization and architecture I/O.
I/O Management and Disk Scheduling
Categories of I/O Devices
Higher Computing Computer Systems S. McCrossan Higher Grade Computing Studies 7. Systems Software 1 System Software This software is used to provide the.
Chapter 11 I/O Management and Disk Scheduling
Day 30 I/O Management and Disk Scheduling. I/O devices Vary in many ways Vary in many ways –Data rate –Application –Complexity of control –Unit of transfer.
Input/Output Management and Disk Scheduling
Operating System - Overview Lecture 2. OPERATING SYSTEM STRUCTURES Main componants of an O/S Process Management Main Memory Management File Management.
1 Pertemuan 12 Input/Output Matakuliah: H0344/Organisasi dan Arsitektur Komputer Tahun: 2005 Versi: 1/1.
I/O Hardware n Incredible variety of I/O devices n Common concepts: – Port – connection point to the computer – Bus (daisy chain or shared direct access)
I/O Management and Disk Scheduling (Chapter 10) Perhaps the messiest aspect of operating system design is input/output A wide variety of devices and many.
Device Management.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
1 Today I/O Systems Storage. 2 I/O Devices Many different kinds of I/O devices Software that controls them: device drivers.
External Devices I/O Modules Programmed I/O Interrupt Driven I/O Direct Memory Access I/O Channels and Processors.
Copyright ©: Nahrstedt, Angrave, Abdelzaher
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
I/O Management and Disk Scheduling
Chapter 11 I/O Management and Disk Scheduling Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and.
Input/OUTPUT [I/O Module structure].
1 I/O Management and Disk Scheduling Chapter Categories of I/O Devices Human readable Used to communicate with the user Printers Video display terminals.
1 IO Management and Disk Scheduling Chapter Categories of I/O Devices n Human readable u used to communicate with the user u video display terminals.
1 I/O Management and Disk Scheduling Chapter
1 I/O Management and Disk Scheduling Chapter Categories of I/O Devices Human readable  Used to communicate with the user  Printers  Video display.
Cpr E 308 Input/Output Recall: OS must abstract out all the details of specific I/O devices Today –Block and Character Devices –Hardware Issues – Programmed.
I/O Systems I/O Hardware Application I/O Interface
1 Lecture 20: I/O n I/O hardware n I/O structure n communication with controllers n device interrupts n device drivers n streams.
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS6: Device Management 6.1. Principles of I/O.
Chapter 10 Multiprocessor and Real-Time Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
Operating Systems Lecture 02: Computer System Overview Anda Iamnitchi
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
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.
1 I/O Management and Disk Scheduling Chapter Categories of I/O Devices Human readable –Used to communicate with the user –Printers –Video display.
ICOM Noack Scheduling For Distributed Systems Classification – degree of coupling Classification – granularity Local vs centralized scheduling Methods.
Input/Output Computer component : Input/Output I/O Modules External Devices I/O Modules Function and Structure I/O Operation Techniques I/O Channels and.
I/O Management Chapter 8.
Fall 2000M.B. Ibáñez Lecture 25 I/O Systems. Fall 2000M.B. Ibáñez Categories of I/O Devices Human readable –used to communicate with the user –video display.
I/O Management and Disk Scheduling Chapter 11. Categories of I/O Devices Human readable Used to communicate with the user  Printers, Display terminals,
1 I/O Management and Disk Scheduling Chapter I/O Devices Can be group into three categories: 1.Human readable Used to communicate with the computer.
Real time scheduling G.Anuradha Ref:- Stallings. Real time computing Correctness of the system depends not only on the logical result of computation,
Device Management Introduction  Keeping track of the status of all devices, which requires special mechanisms. One commonly used mechanism.
Processor Memory Processor-memory bus I/O Device Bus Adapter I/O Device I/O Device Bus Adapter I/O Device I/O Device Expansion bus I/O Bus.
For a good summary, visit:
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 12: I/O Systems I/O hardwared Application I/O Interface Kernel I/O.
Chapter 101 I/O Management and Disk Scheduling Chapter 11.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
Chapter 11 I/O Management and Disk Scheduling Dave Bremer Otago Polytechnic, NZ ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Computer Architecture Chapter (7): Input / Output
1 Chapter 11 I/O Management and Disk Scheduling Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and.
Principles of Operating Systems Lecture 16 Abhishek Dubey Daniel Balasubramanian Real Time Scheduling Fall 2014.
Module 12: I/O Systems I/O hardware Application I/O Interface
Chapter 13: I/O Systems Modified by Dr. Neerja Mhaskar for CS 3SH3.
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
BIC 10503: COMPUTER ARCHITECTURE
CSCI 315 Operating Systems Design
Information Storage and Spintronics 15
I/O Systems I/O Hardware Application I/O Interface
Operating System Concepts
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Module 12: I/O Systems I/O hardwared Application I/O Interface
Presentation transcript:

Page 1 2P13 Week 10

Page 2

Page 3 Static table-driven approaches performs a static analysis of feasible schedules of dispatching result is a schedule that determines, at run time, when a task must begin execution Static priority-driven preemptive approaches a static analysis is performed but no schedule is drawn up analysis is used to assign priorities to tasks so that a traditional priority-driven preemptive scheduler can be used Dynamic planning-based approaches feasibility is determined at run time rather than offline prior to the start of execution one result of the analysis is a schedule or plan that is used to decide when to dispatch this task Dynamic best effort approaches no feasibility analysis is performed system tries to meet all deadlines and aborts any started process whose deadline is missed

Page 4 Real-time operating systems are designed with the objective of starting real-time tasks as rapidly as possible and emphasize rapid interrupt handling and task dispatching Real-time applications are generally not concerned with sheer speed but rather with completing (or starting) tasks at the most valuable times Priorities provide a crude tool and do not capture the requirement of completion (or initiation) at the most valuable time

Page 5 resources required by the task while it is executing Resource requirements measures relative importance of the task Priority a task may be decomposed into a mandatory subtask and an optional subtask Subtask scheduler time task becomes ready for execution Ready time time task must begin Starting deadline time task must be completed Completion deadline time required to execute the task to completion Processing time One or the other but not both

Page 6 Table 10.2 Execution Profile of Two Periodic Tasks ProcessArrival TimeExecution TimeEnding Deadline A(1)01020 A(2) A(3) A(4) A(5) B(1)02550 B(2)

Page 7 Figure 10.5 Scheduling of Periodic Real-Time Tasks With Completion Deadlines (Based on Table 10.2)

Page 8 Figure 10.6 Scheduling of Aperiodic Real-Time Tasks With Starting Deadlines

Page 9 Table 10.3 Execution Profile of Five Aperiodic Tasks ProcessArrival TimeExecution TimeStarting Deadline A B20 C D 2090 E602070

Page 10 Figure 10.7 Rate Monotonic Schedulin g

Page 11 Periodic Task Timing Diagram Figure 10.8

Page 12 Table 10.4 Value of the RMS Upper Bound n  ln 2  0.693

Page 13

Page 14 External devices that engage in I/O with computer systems can be grouped into three categories: suitable for communicating with the computer user printers, terminals, video display, keyboard, mouse Human readable suitable for communicating with electronic equipment disk drives, USB keys, sensors, controllers Machine readable suitable for communicating with remote devices modems, digital line drivers Communication

Page 15

Page 16 Devices differ in a number of areas: Data Rate there may be differences of magnitude between the data transfer rates Application the use to which a device is put has an influence on the software Complexity of Control the effect on the operating system is filtered by the complexity of the I/O module that controls the device Unit of Transfer data may be transferred as a stream of bytes or characters or in larger blocks Data Representation different data encoding schemes are used by different devices Error Conditions the nature of errors, the way in which they are reported, their consequences, and the available range of responses differs from one device to another

Page 17 Three techniques for performing I/O are: Programmed I/O –the processor issues an I/O command on behalf of a process to an I/O module; that process then busy waits for the operation to be completed before proceeding Interrupt-driven I/O –the processor issues an I/O command on behalf of a process if non-blocking – processor continues to execute instructions from the process that issued the I/O command if blocking – the next instruction the processor executes is from the OS, which will put the current process in a blocked state and schedule another process Direct Memory Access (DMA) a DMA module controls the exchange of data between main memory and an I/O module

Page 18 Techniques for Performing I/O

Page 19 1 Processor directly controls a peripheral device 2 A controller or I/O module is added 3 Same configuration as step 2, but now interrupts are employed 4 The I/O module is given direct control of memory via DMA 5 The I/O module is enhanced to become a separate processor, with a specialized instruction set tailored for I/O 6 The I/O module has a local memory of its own and is, in fact, a computer in its own right

Page 20

Page 21

Page 22 Functions of the operating system should be separated according to their complexity, their characteristic time scale, and their level of abstraction Leads to an organization of the operating system into a series of layers Each layer performs a related subset of the functions required of the operating system Layers should be defined so that changes in one layer do not require changes in other layers

Page 23

Page 24

Page 25

Page 26 Table 11.2 Comparison of Disk Scheduling Algorithms (a) FIFO (starting at track 100) (b) SSTF (starting at track 100) (c) SCAN (starting at track 100, in the direction of increasing track number) (d) C-SCAN (starting at track 100, in the direction of increasing track number) Next track access ed Numb er of tracks traver sed Next track access ed Numb er of tracks traver sed Next track access ed Numb er of tracks traver sed Next track access ed Numb er of tracks traver sed Avera ge seek length 55.3Avera ge seek length 27.5Avera ge seek length 27.8Avera ge seek length 35.8

Page 27 The End