Chapter 10. Project: Virtual Timers

Team-FLY

Many systems create multiple "virtual" timers from a single hardware timer. This chapter develops application-level virtual timers based on a single operating system timer. The project explores timers, signals and the testing of asynchronous programs with timed input. Special care must be taken in blocking and unblocking the signals at the right times. The project emphasizes careful, modular design by specifying a well-defined interface between the user -implemented virtual timers and the underlying timer facility.

Objectives

  • Learn about testing and timing

  • Experiment with POSIX interval timers

  • Explore implications of asynchronous operation

  • Use POSIX realtime signals

  • Understand timer implementation

Team-FLY


Unix Systems Programming
UNIX Systems Programming: Communication, Concurrency and Threads
ISBN: 0130424110
EAN: 2147483647
Year: 2003
Pages: 274

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net