Hashed and Hierarchical Timing Wheels: Efficient Data Structures for Implementing a Timer Facility
Introduction to Algorithms