l3.pptx - Computer-System Structures Operating System Concepts with Java 2.1 Silberschatz Galvin and Gagne \u00a92003 A Modern Computer System Operating

l3.pptx - Computer-System Structures Operating System...

This preview shows page 1 - 8 out of 24 pages.

2.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Computer-System Structures
Image of page 1
2.2 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java A Modern Computer System
Image of page 2
2.3 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Computer-System Operation I/O devices and the CPU can execute concurrently Each device controller is in charge of a particular device type Each device controller has a local buffer CPU moves data from/to main memory to/from local buffers I/O is from the device to local buffer of controller Device controller informs CPU that it has finished its operation by causing an interrupt
Image of page 3
2.4 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Common Functions of Interrupts Interrupt transfers control to the interrupt service routine , through the interrupt vector , which contains the addresses of all the service routines Interrupt architecture must save the address of the interrupted instruction An operating system is interrupt driven
Image of page 4
2.5 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Interrupt Handling The operating system preserves the state of the CPU by storing registers and the program counter Determines which type of interrupt has occurred: Separate kernel routines determine what action should be taken for each type of interrupt
Image of page 5
2.6 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Interrupt Time Line For a Single Process Doing Output
Image of page 6
2.7 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java I/O Structure Synchronous I/O - After I/O starts, control returns to user program only upon I/O completion Asynchronous I/O - After I/O starts, control returns to user
Image of page 7
Image of page 8

You've reached the end of your free preview.

Want to read all 24 pages?

  • Fall '19
  • Central processing unit, Gagne,  Separate kernel routines

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture