Chapter 28
Waiting for Time
This chapter is a case study of time delays. Unlike the other case-study chapters, there is no specific program to study, but we will examine some unexpected execution dynamics.
From our framework, this chapter is about not running while waiting for a timer interrupt. A process may block waiting for a timer in order to run at periodic intervals or specific times of day, to have a timeout that checks on some other process running too long, to do timeslicing, or to have a required delay accessing some external hardware.
Many programs need to wait for a certain amount of time to pass before continuing, even though this may seem counterproductive from a performance point of view.
28.1 Periodic Work
Some processes, ...
Get Understanding Software Dynamics now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.