All of the measurements are within 34 of the minimum

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: n behalf of the program, such as, handling page faults, input, or output. Recall that kernel 452 CHAPTER 9. MEASURING PROGRAM EXECUTION TIME (a) System Perspective A B A B A User Kernel (b) Application A’s Perspective Active Inactive Figure 9.2: System’s vs. Applications View of Time. The system switches from process to process, operating in either user or kernel mode. The application only gets useful computation done when its process is executing in user mode. operation is considered part of each regular process rather than a separate process. The operating system scheduler is invoked every time there is an external event or a timer interrupt. The occurrences of timer interrupts are indicated by the tick marks in the figure. This means that there is actually some amount of kernel activity at every tick mark, but for simplicity we do not show it in the figure. When the scheduler switches from process A to process B, it must enter kernel mode to save the state of process A (still considered part of process A) and to restore the state of process B (considered part of pro...
View Full Document

This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.

Ask a homework question - tutors are online