Define CPU latency
Time between the receipt of a service request and the initiation of the service. Can involve both hardware and software delays.
Define real-time system
A system that guarantees a worst-case latency for critical events
Define latency
The delay between the arrival of the request and the completion of service.
What are two terms that are used in discussing system performance?
Latency and Throughput
Define throughput
A measure of how many items can be processed per unit of time.
Define blind cycle
Software waits for some amount of time Ned then acts on the data whether or not the device is ready
Define periodic polling
Device status is checked after a pre-determined amount of time and this repeats until the device is done. Usually implemented with a timer interrupt.
Define occasional polling
Device status is checked at the convenience of the designer
Define tight polling loop (gadfly or busy waiting)
Software continually checks the I/O status, waiting for the device to be done.
Define interrupt handling
Device generates a hardware interrupt to request servicing when done.
Name 5 synchronization mechanisms
Which 3 synchronization mechanisms are CPU-orientated?
Synchronization is dependant primarily on CPU timing.
List 2 synchronization mechanics that are device-orientated
Latency seen by the device is minimized.
Explain the steps in input polling loop synchronization
Explain the steps in output polling loop synchronization
Explain the steps in interrupt synchronization
Why should interrupt service routines (ISR) execute as fast as possible?
Because they are interrupting other tasks
Explain the structure of an interrupt service routine (ISR)
What is the difference between vectored and non-vectored interrupts?
Vectored interrupts have a fixed priority associated with the interrupt vector. In non-vectored interrupts, the software must determine priority and which ISR goes with each interrupt.
Explain the steps in interrupt initialization