O'Reilly logo

ACE Programmer's Guide, The: Practical Design Patterns for Network and Systems Programming by Umar Syyid, James CE Johnson, Stephen D. Huston

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

Chapter 20. Timers

Timers are used in almost all types of software but are especially useful for writing systems or network software. Most timers are implemented with the assistance of an underlying hardware timer, accessed through your operating system interface, which indicates timer expiration in an OS-dependent fashion. Once the hardware timer expires, it notifies the operating system, which in turn will notify the calling application. Achieving all this varies greatly, depending on the machine/OS.

In this chapter, we introduce timers and how they are built with timer queues. We then discuss the timer queue facilities provided by ACE and incorporate them into a crude timer dispatcher. Next, we show you some of the prebuilt timer dispatchers ...

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