l3 (1) - 2.1 Silberschatz Galvin and Gagne ©2003 Operating...

Info icon This preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
2.1 Silberschatz, Galvin and Gagne  © 2003 Operating System Concepts with Java Computer-System Structures
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
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

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
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

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
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 
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern