REDESIGNING THE BSD TIMER FACILITIES

Citation
Am. Costello et G. Varghese, REDESIGNING THE BSD TIMER FACILITIES, Software, practice & experience, 28(8), 1998, pp. 883-896
Citations number
5
Categorie Soggetti
Computer Science Software Graphycs Programming","Computer Science Software Graphycs Programming
ISSN journal
00380644
Volume
28
Issue
8
Year of publication
1998
Pages
883 - 896
Database
ISI
SICI code
0038-0644(1998)28:8<883:RTBTF>2.0.ZU;2-P
Abstract
We describe a reimplementation of the BSD timer facilities. Older BSD kernels take time proportional to the number of outstanding timers to set or cancel timers. Our implementation tin NetBSD) takes constant ti me to start, stop, and maintain timers; this leads to a highly scalabl e design that can support thousands of outstanding timers without much overhead. Unlike the existing implementation, our routines are guaran teed to lock out interrupts only for a small, bounded amount of time, We also extend the setitimer() interface to allow a process to have mu ltiple outstanding timers, thereby reducing the need for users to main tain their own timer packages. The changes to the kernel are small (54 8 lines of code added, 80 removed) and are available on the World Wide Web. (C) 1998 John Wiley & Sons, Ltd.