O'Reilly logo

Solaris™ Internals: Solaris 10 and OpenSolaris Kernel Architecture, Second Edition by Richard McDougall, Jim Mauro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required