So far Binary numbers Logic gates Digital circuits process data using gates – Half and full adder Data storage – Electronic memory – Magnetic memory –

Slides:



Advertisements
Similar presentations
I/O Management and Disk Scheduling
Advertisements

Chapter 6 I/O Systems.
I/O Management and Disk Scheduling
Chapter 5: CPU Scheduling
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
How Much Do I Remember? Are you ready to play.....
Chapter 6 Operating Systems.
Operating Systems Chapter 6.
Operating Systems Chapter 6.
OPERATING SYSTEMS Lecturer: Szabolcs Mikulas Office: B38B
Chapter 5 Input/Output 5.1 Principles of I/O hardware
1 Chapter 11 I/O Management and Disk Scheduling Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and.
INFORMATION TECHNOLOGY, THE INTERNET, AND YOU
Homework Reading Machine Projects Labs
Chapter 5 : Memory Management
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.
Chapter 5 Computing Components.
I/O Management and Disk Scheduling
I/O Organization popo.
Chapter 5 Computing Components. 5-2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von.
Categories of I/O Devices
Test on Input, Output, Processing, & Storage Devices
COMP1214 Systems & Platforms: Operating Systems Concepts Dr. Yvonne Howard – Rikki Prince – 1.
Processes Management.
25 seconds left…...
Week 1.
We will resume in: 25 Minutes.
1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Computer Components.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CS-334: Computer.
Multiprocessing Memory Management
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.
Computer Organization and Architecture
1/21/2010CSCI 315 Operating Systems Design1 Computer System Structures Notice: The slides for this lecture have been largely based on those accompanying.
Group 7 Jhonathan Briceño Reginal Etienne Christian Kruger Felix Martinez Dane Minott Immer S Rivera Ander Sahonero.
CS364 CH08 Operating System Support TECH Computer Science Operating System Overview Scheduling Memory Management Pentium II and PowerPC Memory Management.
Layers and Views of a Computer System Operating System Services Program creation Program execution Access to I/O devices Controlled access to files System.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
Operating Systems  By the end of this session, you will know: What an Operating System is. The functions it performs.
Input/ Output By Mohit Sehgal. What is Input/Output of a Computer? Connection with Machine Every machine has I/O (Like a function) In computing, input/output,
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
Chapter 5 Operating System Support. Outline Operating system - Objective and function - types of OS Scheduling - Long term scheduling - Medium term scheduling.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
COMPUTER ORGANIZATIONS CSNB123 NSMS2013 Ver.1Systems and Networking1.
Chapter 7 Operating Systems. Define the purpose and functions of an operating system. Understand the components of an operating system. Understand the.
OPERATING SYSTEMS Lecture 3: we will explore the role of the operating system in a computer Networks and Communication Department 1.
CH10 Input/Output DDDData Transfer EEEExternal Devices IIII/O Modules PPPProgrammed I/O IIIInterrupt-Driven I/O DDDDirect Memory.
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.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
IT3002 Computer Architecture
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Resource Management IB Computer Science.
William Stallings Computer Organization and Architecture
Computer Architecture
Operating System The OS is JUST A PROGRAM
Operating System The OS is JUST A PROGRAM
Operating Systems.
Operating Systems Chapter 5: Input/Output Management
Operating Systems.
Week 4 Lecture-1 Operating Systems.
Presentation transcript:

So far Binary numbers Logic gates Digital circuits process data using gates – Half and full adder Data storage – Electronic memory – Magnetic memory – Optical memory – Solid state memory

This week Software Operating systems Shells

4 Learning outcomes Describe the functions of the Operating System and its components. Explain where the operating system is usually stored and how it gets started. Explain how the operating system manages memory – Partitioning, swapping, paging, demand paging Explain how the operating system manages I/O devices – Programmed I/O, Interrupt-driven I/O, DMA

5 Additional Reading Essential Reading – Stalling (2003): Chapter 7 and 8

6 What is an operating system? A program that runs on the hardware and supports – Resource Abstraction – Resource Sharing Abstracts and standardises the interface to the user across different type of hardware – Virtual machine hides the messy details witch must be performed. Manages the hardware resources – Each program gets time with the resource – Each program gets space on the resource

7 Main functions of an operating system 1.User/computer interface: – Provides an interface between the user and the computer 2.Resource manager: – manages all computers resources. Process manager Memory manager Device manager File manager, etc.

8 Operation System User command interface Resource management Process Manager Memory manager Device Manager File manager Network manager A model of an operation System

9 Operating system as a resource manager Resource management Process Manager: Next program to be executed? Time to be given to each program ? Memory manager: Best use of the memory to run as many programs as possible I/O Device (e.g.printer) Manager: Which program should use a particular I/O device? Network manager: which computer should execute a particular program?

10 How the operating system get started? Operating System Main memory Bootstrap program Main memory Bootstrap Program Operating System Disk storage ROMROM ROMROM RAMRAM RAMRAM

11 Operating system as a process manager A program is divided into a sequence of instructions Each instructions is divided into a sequence of processes Operating System – Manages the execution of all processes – First come first served – Shortest job first – Round robin

12 Process State As a process executes, it changes state – new: The process is being created. – running: Instructions are being executed. – waiting: The process is waiting for some event to occur. – ready: The process is waiting to be assigned to a process. – terminated: The process has finished execution.

13 Memory partition How processes are arranged in the main memory before been executed? Fixed-sized partitions Variable-sized partitions Swapping Paging

14 Swapping I/O operations are slow If a running process requires an I/O operation. The CPU will move to another process in the main memory. Suppose the main memory is full of processes waiting on I/O. CPU becomes idle To solve this problem Swapping technique is used.

15 os P1 os P1 p2 os P1 p2 p3 os P1 P3 os P1 P4 P3 os P4 p3 os p2p2 P4 p3 a d c b e h g f

16 I/O devices Called peripherals: – Keyboard – Mouse – Speakers – Monitor – scanner – Printer – Disk drive – CD-drive. OS – manages all I/O operations and devices

17 I/O modules System bus CPU Main memory I/O module I/O device I/O device

18 Advantages of I/O modules They are 3 ways in which I/O modules can work – Programmed I/O – Interrupt-driven I/O – Direct memory access.

19 Programmed I/O The CPU controls I/O device directly Via the I/O modules. The CPU sends an I/O command to the I/O module. And waits until the I/O operation is completed before sending another I/O command. The performance is poor as the CPU spends too much time waiting the I/O device.

20 Interrupt-driven I/O The CPU issues a command to the I/O module and then gets on with executing other instructions. The I/O module interrupts the CPU when it is ready to exchange data with the CPU. The CPU then executes the data transfer. Most computer have interrupt lines to detect and record the arrival of an interrupt request.

21 Disadvantages of Interrupt-driven I/O CPU is responsible for managing I/O data transfer. Every transferred word must go through the CPU. Devices with large transfer, e.g. disk drive, the CPU wastes time dealing with data transfer. Solution: Direct-memory-access(DMA).

22 Direct-memory-access - DMA Special-purpose processor. Handles data transfer. CPU issues to the DMA: starting address in main memory to read/write to. Starting address in the I/O device to read/write to. The number of words to be transferred. DMA transfers data without intervention from the CPU. DMA sends interrupt to the CPU when transfer is completed.

23 DMA/CPU - bus system DMA take care data transfer. CPU free to do other jobs. However, they can not use the bus at the same time. DMA can use the bus only when the CPU is not using it. Some times it has to force to CPU to free the bus, cycles stealing.

24 DMA/CPU System bus CPU Main memory I/O module I/O device DMA

25 Summery OS- memory manager Fixed-sized partition: waist of memory. Variable-sized partition: fragmentation. Swapping. Time wasted in swapping the whole process Simple paging: process divided into pages and loaded into main memory(divided into frames). OS- I/O manager Programmed I/O: CPU waste waiting for I/O operation. Interrupt-driven I/O: CPU responsible for data transfer. DMA: takes care of data transfer instead the CPU.