19. Clocks and Timers

In this chapter, we discuss the central facilities related to time and time-based events scheduling.

19.1 The System Clock Thread

The Solaris clock thread performs routine processing as a lock-level client of the cyclic subsystem (Section 19.4). For example, it triggers the dispatcher to recalculate thread priorities at regular intervals, and also initiates callout queue processing. Figure 19.1 shows the interaction between the system timing interfaces and subsystems.

Figure 19.1. Clock and Timer Interactions

image

The kernel installs a cyclic to call the clock thread at regular intervals, by default 100 times per second. With ...

Get Solaris™ Internals: Solaris 10 and OpenSolaris Kernel Architecture, Second Edition 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.