Skip to content

zwg0106/timerService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

It's a timer service used for linux. A thread to listen new timer added and wait for minimum timer expire. All timer are added into a timer event table that are organized as a left binary heap.

complexity of binary heap tree and linked list:

            |       start       |       find        |       delete  

binary tree | O(log2n) | O(1) | O(2*log2n)

linked list | O(n/2) | O(n/2) | O(1)

HOW TO:

make

make -f Makefile.test

./timerService_test

About

provide a timer services for multi-thread

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published