IBM PC Interrupt Structure and 8259 DMA Controllers

Total Page:16

File Type:pdf, Size:1020Kb

IBM PC Interrupt Structure and 8259 DMA Controllers ELEC 464 : MICROCOMPUTER SYSTEM DESIGN 1996/97 WINTER SESSION TERM 1 IBM PC Interrupt Structure and 8259 DMA Controllers This lecture covers the use of interrupts and the vectored interrupt mechanism used on the IBM PC using the Intel 8259 Programmable Interrupt Controller (PIC). After this lecture you should be able to: decide and explain why interrupts should (or should not) be used to service a particular peripheral, describe how the 8259 PIC is connected to handle multiple interrupt sources, and write 8088 assembly language code to initialize and service interrupts generated by the 8259 PIC. 1 Review of Interrupts an interrupt is a large percentage of the time available to service the device. Many peripheral devices such as serial interfaces, Exercise: Data is arriving on a serial interface at 4000 keyboards and real-time clocks need to be serviced characters per second. If this device is serviced by polling, periodically. For example, incoming characters or and each character must be read before another one is re- keystrokes have to be read from the peripheral or the ceived, what is the maximum time allowed between polls? current time value needs to be updated from a peri- If each poll requires 10 microseconds to complete, what odic clock source. fraction of the CPU time is always being used up even The two common ways of servicing devices are by when the serial port is idle? What if there were 8 similar polling and by using interrupts. Polling means that devices installed in the computer? a status bit on the interface is periodically checked Exercise: Data is being read from a tape drive interface to see whether some additional operation needs to be at 100,000 characters per second. The overhead to ser- performed, for example whether the device has data vice an interrupt and return control to the interrupted pro- ready to be read. A device can also be designed to gram is 20 microseconds. Can this device use an ISR to generate an interrupt when it requires service. This transfer each character? interrupt interrupts normal ¯ow of control and causes It is also possible to use a mixture of interrupt and an interrupt service routine (ISR) to be executed to polled devices. For example, devices can be polled service the device. by an ISR that executes periodically due to a clock Polling must be done suf®ciently fast that data is interrupt. It is also common for devices to buffer not lost. Since each poll requires a certain number of multiple bytes and issue an interrupt only when the operations, this creates a certain minimum overhead buffer is full (or empty). The ISR can then transfer (fraction of available CPU cycles) for servicing each the buffer without an ISR overhead for each byte. device. In addition, these polling routines must be in- In applications where loss of data cannot be tol- tegrated into each program that executes on the pro- erated (e.g. where safety would be affected) the de- cessor. signer must ensure that all of the devices serviced On the other hand, since the ISR is only exe- by interrupts can be properly serviced under worst- cuted once for each interrupt there is no ®xed over- case conditions. Typically this involves a sequence head for servicing interrupt-driven devices. How- of nested interrupts happening closely one after an- ever, responding to an interrupt requires some addi- other in a particular order. In some of these systems tional overhead to save the processor state, fetch the it may be easier to use polling to help ensure correct interrupt number and then the corresponding inter- worst-case behaviour. rupt vector, branch to the ISR and later restore the processor state. In general, it is advantageous to use interrupts 2 Maskable and Non-Maskable In- when the overhead required by polling would con- terrupts sume a large percentage of the CPU time or would complicate the design of the software. It is advanta- Like most other processors, the 8088 has two types geous to use polling when the overhead of servicing of interrupts: non-maskable and maskable. Mask- 1 able interrupts (the INTR pin) can be disabled by 8 plus the particular interrupt signal (e.g. if IR3 clearing the IF bit (¯ag) in the processor status word. was asserted the CPU would read the value 11 Non-maskable interrupts (NMI pin) cannot be dis- from the PIC during the interrupt acknowledge abled. An maskable interrupt causes an interrupt ac- cycle). knowledge cycle which is used to fetch an interrupt type (number) while an NMI always uses the inter- The PIC has two control registers that can be read rupt vector for interrupt type 2. or written. On the IBM PC the address decoder Exercise: Where is the interrupt vector for NMI? for PIC places these two registers in the I/O address space at locations 20H and 21H. Unlike many other microprocessors both INT and 3 The 8259 in the IBM PC Architec- IRx are active-high signals and on the IBM PC the ture IRx inputs are con®gured to be edge-triggered. The interrupt inputs to the PIC are connected as The 8088 CPU only has one interrupt request pin. Al- follows: though simple systems may only have one interrupt interrupt device source, more complex systems must have some way 0 timer of dealing with multiple interrupt sources. The In- 1 keyboard tel ªway of doing thingsº is to use a chip called a 2 reserved programmable interrupt controller (PIC). This chip 3 serial port 2 takes as inputs interrupt request signals from up to 8 4 serial port 1 peripherals and supplies a single INTR signal to the 5 hard disk CPU as shown below: 6 ¯oppy disk 8088 CPU 8259 PIC 7 printer 1 INTR INT Exercise: When the a key on the keyboard is pressed, IR0 which input on the 8259 will be asserted? What will the sig- INTA INTA IR1 nal level be? What value will the 8088 read from the PIC IR2 . during the interrupt acknowledge cycle? What addresses . data bus . will the CPU read to get the starting address of the key- IR7 from peripherals board ISR? address decoder CS On the IBM AT and later models there are more than 8 interrupt sources and there are two PIC. The The PIC has 3 purposes: slave PIC supports an additional 8 interrupt inputs and requests an interrupt from the master PIC as if it 1. It allows each of the individual interrupts to be were an interrupting peripheral on IR2. enabled or disabled (masked). Exercise: What is the maximum number of interrupt sources that could be handled using one master and mul- 2. It prioritizes interrupts so that if multiple inter- tiple slave PICs? rupts happen simultaneously the one with the highest priority is serviced ®rst. The priorities of the interrupts are ®xed, with input IR0 hav- 4 Programming the 8259 Interrupt ing the highest priority and IR7 the lowest. In- Controller terrupts of lower priority not handled while an ISR for a higher-level interrupt is active. The initialization of the PIC is rather complicated be- cause it has many possible operating modes. The 3. It provides an interrupt type (number) that the PIC's operating mode is normally initialized by the CPU reads during the interrupt acknowledge cy- BIOS when the system is booted. We will only con- cle. This tells the CPU which of the 8 possible sider the standard PIC operating used on the IBM PC interrupts occured. The PIC on the IBM PC is and only a system with a single (master) PIC. programmed to respond with an interrupt type of 2 In it's standard mode the PIC operates as follows: process returns from the ISR via the IRET instruc- tion. This means that ISRs can't be interrupted (not If a particular interrupt source is not masked even by a higher-level interrupt) unless interrupts are then a rising edge on that interrupt request line is explicitly re-enabled in the ISR. captured and stored (ªlatchedº). Multiple inter- Interrupt routines should be kept as short as pos- rupt requests can be ªpendingº at a given time. sible to minimize the interrupt latency (see below). Typically this involves having the ISR store values in if not ISR for the same or a higher level is active a buffer or set ¯ags and then having the bulk of the the interrupt signal to the CPU is asserted processing performed outside the ISR. if the CPU's interrupt enable ¯ag is set then an It's possible to allow the CPU to interrupt an ISR interrupt acknowledge cycle will happen and the (resulting in nested interrupts)by setting the interrupt interrupt number for the highest pending inter- enable bit with the STI instruction. rupt is supplied by the PIC to the CPU Exercise: How many levels deep could interrupts be at the end of the ISR a command byte (20H) nested on the IBM PC? In the worst case, how much space must be written to the PIC register at address would be required on the interrupted program's stack to 20H to re-enable interrupts at that level again. hold the values pushed during the interrupt acknowledge This is called the `EOI' (end-of interrupt) com- cycle? mand. Sample 8088/8259 ISR During normal operation only two operations need to be performed on the PIC: The code below shows an 8088 assembly language program that includes an ISR. The program sets up an 1. Disabling (masking) and enabling interrupts ISR for interrupt number 8 (the timer interrupt on the from a particular source.
Recommended publications
  • Demystifying the Real-Time Linux Scheduling Latency
    Demystifying the Real-Time Linux Scheduling Latency Daniel Bristot de Oliveira Red Hat, Italy [email protected] Daniel Casini Scuola Superiore Sant’Anna, Italy [email protected] Rômulo Silva de Oliveira Universidade Federal de Santa Catarina, Brazil [email protected] Tommaso Cucinotta Scuola Superiore Sant’Anna, Italy [email protected] Abstract Linux has become a viable operating system for many real-time workloads. However, the black-box approach adopted by cyclictest, the tool used to evaluate the main real-time metric of the kernel, the scheduling latency, along with the absence of a theoretically-sound description of the in-kernel behavior, sheds some doubts about Linux meriting the real-time adjective. Aiming at clarifying the PREEMPT_RT Linux scheduling latency, this paper leverages the Thread Synchronization Model of Linux to derive a set of properties and rules defining the Linux kernel behavior from a scheduling perspective. These rules are then leveraged to derive a sound bound to the scheduling latency, considering all the sources of delays occurring in all possible sequences of synchronization events in the kernel. This paper also presents a tracing method, efficient in time and memory overheads, to observe the kernel events needed to define the variables used in the analysis. This results in an easy-to-use tool for deriving reliable scheduling latency bounds that can be used in practice. Finally, an experimental analysis compares the cyclictest and the proposed tool, showing that the proposed method can find sound bounds faster with acceptable overheads. 2012 ACM Subject Classification Computer systems organization → Real-time operating systems Keywords and phrases Real-time operating systems, Linux kernel, PREEMPT_RT, Scheduling latency Digital Object Identifier 10.4230/LIPIcs.ECRTS.2020.9 Supplementary Material ECRTS 2020 Artifact Evaluation approved artifact available at https://doi.org/10.4230/DARTS.6.1.3.
    [Show full text]
  • Interrupt Handling in Linux
    Department Informatik Technical Reports / ISSN 2191-5008 Valentin Rothberg Interrupt Handling in Linux Technical Report CS-2015-07 November 2015 Please cite as: Valentin Rothberg, “Interrupt Handling in Linux,” Friedrich-Alexander-Universitat¨ Erlangen-Nurnberg,¨ Dept. of Computer Science, Technical Reports, CS-2015-07, November 2015. Friedrich-Alexander-Universitat¨ Erlangen-Nurnberg¨ Department Informatik Martensstr. 3 · 91058 Erlangen · Germany www.cs.fau.de Interrupt Handling in Linux Valentin Rothberg Distributed Systems and Operating Systems Dept. of Computer Science, University of Erlangen, Germany [email protected] November 8, 2015 An interrupt is an event that alters the sequence of instructions executed by a processor and requires immediate attention. When the processor receives an interrupt signal, it may temporarily switch control to an inter- rupt service routine (ISR) and the suspended process (i.e., the previously running program) will be resumed as soon as the interrupt is being served. The generic term interrupt is oftentimes used synonymously for two terms, interrupts and exceptions [2]. An exception is a synchronous event that occurs when the processor detects an error condition while executing an instruction. Such an error condition may be a devision by zero, a page fault, a protection violation, etc. An interrupt, on the other hand, is an asynchronous event that occurs at random times during execution of a pro- gram in response to a signal from hardware. A proper and timely handling of interrupts is critical to the performance, but also to the security of a computer system. In general, interrupts can be emitted by hardware as well as by software. Software interrupts (e.g., via the INT n instruction of the x86 instruction set architecture (ISA) [5]) are means to change the execution context of a program to a more privileged interrupt context in order to enter the kernel and, in contrast to hardware interrupts, occur synchronously to the currently running program.
    [Show full text]
  • Microkernel Mechanisms for Improving the Trustworthiness of Commodity Hardware
    Microkernel Mechanisms for Improving the Trustworthiness of Commodity Hardware Yanyan Shen Submitted in fulfilment of the requirements for the degree of Doctor of Philosophy School of Computer Science and Engineering Faculty of Engineering March 2019 Thesis/Dissertation Sheet Surname/Family Name : Shen Given Name/s : Yanyan Abbreviation for degree as give in the University calendar : PhD Faculty : Faculty of Engineering School : School of Computer Science and Engineering Microkernel Mechanisms for Improving the Trustworthiness of Commodity Thesis Title : Hardware Abstract 350 words maximum: (PLEASE TYPE) The thesis presents microkernel-based software-implemented mechanisms for improving the trustworthiness of computer systems based on commercial off-the-shelf (COTS) hardware that can malfunction when the hardware is impacted by transient hardware faults. The hardware anomalies, if undetected, can cause data corruptions, system crashes, and security vulnerabilities, significantly undermining system dependability. Specifically, we adopt the single event upset (SEU) fault model and address transient CPU or memory faults. We take advantage of the functional correctness and isolation guarantee provided by the formally verified seL4 microkernel and hardware redundancy provided by multicore processors, design the redundant co-execution (RCoE) architecture that replicates a whole software system (including the microkernel) onto different CPU cores, and implement two variants, loosely-coupled redundant co-execution (LC-RCoE) and closely-coupled redundant co-execution (CC-RCoE), for the ARM and x86 architectures. RCoE treats each replica of the software system as a state machine and ensures that the replicas start from the same initial state, observe consistent inputs, perform equivalent state transitions, and thus produce consistent outputs during error-free executions.
    [Show full text]
  • Programmable Interrupt Controller
    Programmable Interrupt Controller Dr. Wajiha Shah Outline • Explain how the x86 executes interrupts by using the interrupt vector table and interrupt routines. • List the differences between interrupts and CALL instructions. • Describe the differences between hardware and software interrupts. • Examine the ISR for any interrupt, given its interrupt number. • Describe the function of each pin of the 8259 programmable interrupt controller (PIC) chip. • Explain the purpose of each of the four control words of the 8259 and demonstrate how they are programmed. • Examine the interrupts in x86 PC1s. 8088/86 INTERRUPTS • An interrupt is an external event that informs the CPU that a device needs its service. – In 8088/86 there are a total of 256 interrupts. • INT 00, INT 01, ..., INT FF (sometimes called TYPEs). • When an interrupt is executed the processor: – Saves the flag register (FR), instruction pointer (IP), and code segment register (CS) on the stack,. – Goes to a fixed memory location. • In x86, always four times the value of the interrupt number. 8088/86 INTERRUPTS interrupt service routine (ISR) 1. When an interrupt is invoked it is asked to run a program to perform a certain service. 2. There must be a program associated with every interrupt . 3. This program is commonly referred to as an interrupt service routine (ISR), and also called the interrupt handler. 4. When an interrupt is invoked, the CPU runs the interrupt service routine. 8088/86 INTERRUPTS interrupt service routine (ISR) – For every interrupt there are allocated four bytes of memory in the interrupt vector table. – Two bytes for the IP. – Two for the CS of the ISR.
    [Show full text]
  • 16-Bit MS-DOS Programming (MS-DOS & BIOS-Level Programming )
    Microprocessors (0630371) Fall 2010/2011 – Lecture Notes # 20 16-Bit MS-DOS Programming (MS-DOS & BIOS-level Programming ) Objectives Real-Address Mode MS-DOS Memory Organization MS-DOS Memory Map Interrupts Mechanism—Introduction Interrupts Mechanism — Steps Types of Interrupts 8086/8088 Pinout Diagrams Redirecting Input-Output INT Instruction Interrupt Vectoring Process Common Interrupts Real-Address Mode Real-address mode (16-bit mode) programs have the following characteristics: o Max 1 megabyte addressable RAM o Single tasking o No memory boundary protection o Offsets are 16 bits IBM PC-DOS: first Real-address OS for IBM-PC Later renamed to MS-DOS, owned by Microsoft MS-DOS Memory Organization Interrupt Vector Table BIOS & DOS data Software BIOS MS-DOS kernel Resident command processor Transient programs Video graphics & text Reserved (device controllers) ROM BIOS MS-DOS Memory Map Address FFFFF R O M BIO S F0000 Reserved C0000 Video Text & Graphics B8000 V R A M Video Graphics A0000 Transient Command Processor Transient Program Area (available for application programs) Resident Command Processor 640K R A M DOS Kernel, Device Drivers Software BIOS BIOS & DOS Data 00400 Interrupt Vector Table 00000 Interrupt Mechanism—Introduction Devices such as the keyboard, the monitor, hard disks etc. can cause such interrupts, when they require service of some kind, such as to get or receive a byte. For example, when you press a key on the keyboard this causes an interrupt. When the Microprocessor is interrupted, it completes the current instruction, and then pushes onto the stack the flags register plus the address of the next instruction (the return address).
    [Show full text]
  • 8259 Programmable Interrupt Controller
    edge of each clock pulse. When the counter reaches zero, the OUT goes low and the counter is reloaded with the full count and the whole process is repeated. 3) In this way, if the count is odd, the output will be high for (n+1)/2 counts and low for (n-1)/2 count MODE 4 : Software Triggered Strobe In this mode , the OUT is high; It goes low for one clock period at the end of the count. The count must be loaded subsequently outputs MODE 5 : Hardware triggered strobe (Retriggerable). Initially, the out is low, and when the gate pulse is triggered from low to high, The count begins. At the end of count, the OUT goes low for one clock period. 8259 programmable interrupt controller 8259 is Programmable Interrupt Controller (PIC) It is a tool for managing the interrupt requests. 8259 is a very flexible peripheral controller chip: PIC can deal with up to 64 interrupt inputs interrupts can be masked various priority schemes can also programmed. There are 5 hardware interrupts and 2 hardware interrupts in 8085 and 8086 respectively. But by connecting 8259 with CPU, we can increase the interrupt handling capability. 8259 combines the multi interrupt input sources into a single interrupt output. Interfacing of single PIC provides 8 interrupts inputs from IR0-IR7. For example, Interfacing of 8085 and 8259 increases the interrupt handling capability of 8085 microprocessor from 5 to 8 interrupt levels. Features of 8259 PIC microprocessor – 1. Intel 8259 is designed for Intel 8085 and Intel 8086 microprocessor. 2.
    [Show full text]
  • Process Scheduling Ii
    PROCESS SCHEDULING II CS124 – Operating Systems Spring 2021, Lecture 12 2 Real-Time Systems • Increasingly common to have systems with real-time scheduling requirements • Real-time systems are driven by specific events • Often a periodic hardware timer interrupt • Can also be other events, e.g. detecting a wheel slipping, or an optical sensor triggering, or a proximity sensor reaching a threshold • Event latency is the amount of time between an event occurring, and when it is actually serviced • Usually, real-time systems must keep event latency below a minimum required threshold • e.g. antilock braking system has 3-5 ms to respond to wheel-slide • The real-time system must try to meet its deadlines, regardless of system load • Of course, may not always be possible… 3 Real-Time Systems (2) • Hard real-time systems require tasks to be serviced before their deadlines, otherwise the system has failed • e.g. robotic assembly lines, antilock braking systems • Soft real-time systems do not guarantee tasks will be serviced before their deadlines • Typically only guarantee that real-time tasks will be higher priority than other non-real-time tasks • e.g. media players • Within the operating system, two latencies affect the event latency of the system’s response: • Interrupt latency is the time between an interrupt occurring, and the interrupt service routine beginning to execute • Dispatch latency is the time the scheduler dispatcher takes to switch from one process to another 4 Interrupt Latency • Interrupt latency in context: Interrupt! Task
    [Show full text]
  • The Programmable Interrupt Controller
    The Programmable Interrupt Controller SYSC-3006 Interrupt Controller • Before : The 8086 processor has two hardware interrupt signals • We’ve seen at least 2 interrupt sources. 8086 Timer Keyboard NMI INTR (INT 8) (INT 9) bus • “Decides from which vector table location to load ISR address” SYSC-3006 Interrupt Vectors: Deciding which ISR to run • Auto-vectored interrupts: vector predefined as part of CPU design – For each HW signal, CPU goes to a particular interrupt-type in vector table. – 8086 Example: NMI (auto-vectored -> Interrupt-type 2) • NMI asserted, 8086 executes INT type 2 interrupt behaviour: – save processor state – obtain ISR address from vector 2 (memory address 0:8) – execute type 2 ISR • More than one device shares the NMI signal? (e.g. RAM and power supply) – NMI ISR must check (poll) each device (which one caused the interrupt?) SYSC-3006 Interrupt Vectors: Deciding which ISR to run • Vectored interrupts: vector determined during systems design. – CPU performs “interrupt-acknowledge” cycle -> reads interrupt-type from data bus • Interrupting device can provide interrupt-type • 8086: interrupt controller (IC) External hardware – Vectored interrupts: robust method for multiple devices connected to single interrupt line (no polling!) • Interrupt-type: mapping to unique ISR for each device • Interrupt controller acts as a multiplexer – 8086 Example: INTR is a vectored interrupt SYSC-3006 Interrupt Controller • Interrupt controller acts as a funnel for multiple device interrupts – Allows many devices to share the 8086’s single
    [Show full text]
  • Efficient Interrupts on Cortex-M Microcontrollers
    Efficient Interrupts on Cortex-M Microcontrollers Chris Shore Training Manager ARM Ltd Cambridge, UK [email protected] Abstract—The design of real-time embedded systems involves So, assuming that we have a system which is powerful a constant trade-off between meeting real-time design goals and enough to meet all its real-time design constraints, we have a operating within power and energy budgets. This paper explores secondary problem. how the architectural features of ARM® Cortex®-M microcontrollers can be used to maximize power efficiency while That problem is making the system as efficient as possible. ensuring that real-time goals are met. If we have sufficient processing power, it is relatively trivial to conceive and implement a design which meets all time-related Keywords—interrupts; microcontroller; real-time; power goals but such a system might be extremely inefficient when it efficiency. comes to energy consumption. The requirement to minimize energy consumption introduces another set of goals and I. INTRODUCTION constraints. It requires us to make use of sleep modes and low A “real-time” system is one which has to react to external power modes in the hardware, to use the most efficient events within certain time constraints. Wikipedia says: methods for switching from one event to another and to maximize “idle time” in the design to make opportunities to “A system is real-time if the total correctness on an use low power modes. operation depends not only on its logical correctness but also upon the time in which it is performed.” The battle is between meeting the time constraints while using the least amount of energy in doing so.
    [Show full text]
  • And PC 750 (Type 6887)
    Technical Information Manual PC 730 (Type 6877) and PC 750 (Type 6887) Technical Information Manual IBM PC 730 (Type 6877) and PC 750 (Type 6887) Note Before using this information and the product it supports, be sure to read the general information under Appendix B, “Notices and Trademarks” on page 65. First Edition (June 1996) The following paragraph does not apply to the United Kingdom or any country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This publication could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time. It is possible that this publication may contain reference to, or information about, IBM products (machines and programs), programming, or services that are not announced in your country. Such references or information must not be construed to mean that IBM intends to announce such IBM products, programming, or services in your country. Requests for technical information about IBM products should be made to your IBM reseller or IBM marketing representative. IBM may have patents or pending patent applications covering subject matter in this document.
    [Show full text]
  • Thread Verification Vs. Interrupt Verification
    Thread Verification vs. Interrupt Verification John Regehr School of Computing University of Utah ABSTRACT to verifiers for thread-based programs that per- Interrupts are superficially similar to threads, but there are mit them to also check interrupt-based programs. subtle semantic differences between the two abstractions. A secondary goal is to exploit the semantics of This paper compares and contrasts threads and interrupts interrupts to make checking faster and more pre- from the point of view of verifying the absence of race con- cise. ditions. We identify a small set of extensions that permit Of course, threads come in many flavors. In this paper thread verification tools to also verify interrupt-driven soft- we’ll assume POSIX-style threads [5]: preemptively sched- ware, and we present examples of source-to-source trans- uled blocking threads, scheduled either in the kernel or at formations that turn interrupt-driven code into semanti- user level. cally equivalent thread-based code that can be checked by a thread verifier. 2. THREADS AND INTERRUPTS 1. INTRODUCTION The following are some significant ways in which threads For programs running on general-purpose operating sys- differ from interrupts. tems on PC-class hardware, threads are probably the most important abstraction supporting concurrent programming. Blocking. Interrupt cannot block: they run to completion On the other hand, interrupts are the dominant method for unless preempted by other interrupts. The inability to block expressing concurrency in embedded systems, particularly is very inconvenient, and it is one of the main reasons that those based on small microcontroller units (MCUs). All complex logic should not be implemented in interrupt code.
    [Show full text]
  • Simulation and Comparison of Various Scheduling Algorithm for Improving the Interrupt Latency of Real –Time Kernal
    Journal of Computer Science and Applications. ISSN 2231-1270 Volume 6, Number 2 (2014), pp. 115-123 © International Research Publication House http://www.irphouse.com Simulation And Comparison of Various Scheduling Algorithm For Improving The Interrupt Latency of Real –Time Kernal 1.Lavanya Dhanesh 2.Dr.P.Murugesan 1.Research Scholar, Sathyabama University, Chennai, India. 2.Professor, S.A. Engineering College, Chennai, India. Email:1. [email protected] Abstract The main objective of the research is to improve the performance of the Real- time Interrupt Latency using Pre-emptive task Scheduling Algorithm. Interrupt Latency provides an important metric in increasing the performance of the Real Time Kernal So far the research has been investigated with respect to real-time latency reduction to improve the task switching as well the performance of the CPU. Based on the literature survey, the pre-emptive task scheduling plays an vital role in increasing the performance of the interrupt latency. A general disadvantage of the non-preemptive discipline is that it introduces additional blocking time in higher priority tasks, so reducing schedulability . If the interrupt latency is increased the task switching delay shall be increasing with respect to each task. Hence most of the research work has been focussed to reduce interrupt latency by many methods. The key area identified is, we cannot control the hardware interrupt delay but we can improve the Interrupt service as quick as possible by reducing the no of preemptions. Based on this idea, so many researches has been involved to optimize the pre-emptive scheduling scheme to reduce the real-time interrupt latency.
    [Show full text]