Section 3: Software Synchronization Flashcards
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
- Blind cycle
- Periodic polling
- Occasional polling
- Tight polling
- Interrupt handling.
Which 3 synchronization mechanisms are CPU-orientated?
- Blind cycle
- Periodic polling
- Occasional polling
Synchronization is dependant primarily on CPU timing.
List 2 synchronization mechanics that are device-orientated
- Tight polling
- Interrupt handling
Latency seen by the device is minimized.
Explain the steps in input polling loop synchronization
- Poll the device
- Wait until data is available
- Input the data
Explain the steps in output polling loop synchronization
- Poll the device
- Wait until device is ready
- Output data