Events and Interrupts. Overview  What is an Event?  Examples of Events  Polling  Interrupts  Sample Timer Interrupt example.

Slides:



Advertisements
Similar presentations
More on Processes Chapter 3. Process image _the physical representation of a process in the OS _an address space consisting of code, data and stack segments.
Advertisements

Computer Hardware & Systems
1 (Review of Prerequisite Material). Processes are an abstraction of the operation of computers. So, to understand operating systems, one must have a.
1 Exceptions, Interrupts & Traps Operating System Hebrew University Spring 2007.
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
Figure 2.8 Compiler phases Compiling. Figure 2.9 Object module Linking.
Chapter 8 I/O. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 8-2 I/O: Connecting to Outside World So far,
OS Spring’03 Introduction Operating Systems Spring 2003.
Abhinav Kamra Computer Science, Columbia University 2.1 Operating System Concepts Silberschatz, Galvin and Gagne  2002 Chapter 2: Computer-System Structures.
Pipeline Exceptions & ControlCSCE430/830 Pipeline: Exceptions & Control CSCE430/830 Computer Architecture Lecturer: Prof. Hong Jiang Courtesy of Yifeng.
Advanced OS Chapter 3p2 Sections 3.4 / 3.5. Interrupts These enable software to respond to signals from hardware. The set of instructions to be executed.
Computer System Organization S H Srinivasan
S. Barua – CPSC 240 CHAPTER 8 I/O How are I/O devices identified? Memory-mapped vs. special instructions.
Input-Output Problems L1 Prof. Sin-Min Lee Department of Mathematics and Computer Science.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Exceptions, Interrupts & Traps
ECE 265 – LECTURE 12 The Hardware Interface 8/22/ ECE265.
General System Architecture and I/O.  I/O devices and the CPU can execute concurrently.  Each device controller is in charge of a particular device.
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,
CHAPTER 2: COMPUTER-SYSTEM STRUCTURES Computer system operation Computer system operation I/O structure I/O structure Storage structure Storage structure.
1 CSE Department MAITSandeep Tayal Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
Chapter 8 I/O. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 8-2 I/O: Connecting to Outside World So far,
Chapter 2: Computer-System Structures 2.1 Computer System Operation 2.5 Hardware Protection 2.6 Network Structure.
1 CS/COE0447 Computer Organization & Assembly Language Chapter 5 part 4 Exceptions.
Tami Meredith, Ph.D. CSCI  Devices need CPU access  E.g., NIC has a full buffer it needs to empty  These device needs are often asynchronous.
I/O Interfacing A lot of handshaking is required between the CPU and most I/O devices. All I/O devices operate asynchronously with respect to the CPU.
מנהלות. שעות קבלה סיוון סבתו -) יעודכן בקרוב באתר ( רוס 60 עומר לב - רביעי 16:00-17:00 רוס 25 ) קומה 1-( –בתאום מראש במייל הקורס !
7.2 Peripheral Supplementary From the view of OS to see interrupt.
CSC 2405 Computer Systems II Exceptions Mini-Lecture Traps & Interrupts.
AVR Programming: Interrupts September 17, What are interrupts? An asynchronous signal indicating the need for an event to be handled A synchronous.
Lab 13 Department of Computer Science and Information Engineering National Taiwan University Lab13 – Interrupt + Timer 2014/12/23 1 /16.
Computer Orgnization Rabie A. Ramadan Lecture 6. DataPath.
Exceptional Control Flow Topics Exceptions except1.ppt CS 105 “Tour of the Black Holes of Computing”
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 2 Computer-System Structures Slide 1 Chapter 2 Computer-System Structures.
Silberschatz, Galvin and Gagne  Applied Operating System Concepts Chapter 2: Computer-System Structures Computer System Architecture and Operation.
Microprocessor and Interfacing Example: Writing a Game Need to Check Keyboard Input.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
1 Lecture 1: Computer System Structures We go over the aspects of computer architecture relevant to OS design  overview  input and output (I/O) organization.
I/O Organization Competency – C6. Important facts to remember when I/O devices are to be connected to CPU There is a vast variety of I/O devices. Some.
9/20/6Lecture 3 - Instruction Set - Al1 Exception Handling.
Chapter 2: Computer-System Structures(Hardware) or Architecture or Organization Computer System Operation I/O Structure Storage Structure Storage Hierarchy.
BIOS and DOS Interrupts Basic Input /Outpu System Disk Operating System.
Interrupts and Exception Handling. Execution We are quite aware of the Fetch, Execute process of the control unit of the CPU –Fetch and instruction as.
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
Computer System Structures Interrupts
Chapter 2: Computer-System Structures(Hardware)
Chapter 2: Computer-System Structures
Resource Management IB Computer Science.
CS501 Advanced Computer Architecture
Microprocessor Systems Design I
Exceptional Control Flow
Exceptional Control Flow
Exceptional Control Flow
Module 2: Computer-System Structures
Outline Computer Organization Devices Interrupts Computer architecture
CS703 - Advanced Operating Systems
Exceptions Control Flow
TCSP – Software Design.
TCSP: Software Development Status
EE 472 – Embedded Systems Dr. Shwetak Patel.
8051 Micro Controller.
Module 2: Computer-System Structures
Chapter 8 I/O.
Chapter 2: Computer-System Structures
Chapter 2: Computer-System Structures
Module 2: Computer-System Structures
Module 2: Computer-System Structures
Presentation transcript:

Events and Interrupts

Overview  What is an Event?  Examples of Events  Polling  Interrupts  Sample Timer Interrupt example

What is an Event?  Wikipedia: In computing an event is an action that is usually initiated outside the scope of a program and that is handled by a piece of code inside the program.

Examples of Events  Timer Elapses  User input (Mouse/Keyboard)  Segmentation Fault

Polling  Wikipedia: Polling, or polled operation, in computer science, refers to actively sampling the status of an external device by a client program as a synchronous activity.

Interrupts  Wikipedia: In computing, an interrupt is an asynchronous signal indicating the need for attention or a synchronous event in software indicating the need for a change in execution.

Sample Timer Interrupt  We will need to use  We need to catch if an invalid interrupt happens  We need to handle the correct interrupts  We will make lights blink.

Things to remember  Use polling when you can.  Use interrupts when you need.