Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: NicoQwertyu on September 27, 2005, 12:53 PM

Title: Linux Timers
Post by: NicoQwertyu on September 27, 2005, 12:53 PM
How can I do multiple timers in linux (queues, idle messages, ect.)?  I don't think I can use setitimer, however, which the only thing I've been able to find so far.
Title: Re: Linux Timers
Post by: Kp on September 27, 2005, 08:41 PM
You could implement the timer logic internally, the same way cron(8) does.  Let your program compute when next it needs to take some action, then sleep until that time.  Repeat as necessary.