timer_gettime returns time in the past, and the timer does not expire
From: Liron Manor (liron_at_qualcomm.com)
Date: 07/13/04
- Next message: Iman M. Gowhari: "Re: (gcc) warning: no newline at end of file"
- Previous message: Josef Moellers: "Re: Add symbols to an ELF object file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 Jul 2004 03:00:09 -0700
Hi,
On Linux 2.4 with 800Hz internal clock on Xeon machine - we are doing
some "soft-real-time" application programming.
Normally the timers work fine, even when loading them (we set the
timer over and over sometimes hundreds of times in a second), but
sometimes the following phenomena occures -
We are calling timer_settime for 40ms from present time, and do not
get notification in the signal handler (handles SIGALRM). When
timer_gettime is called after 200ms from the time the timer was set,
we get back 0xFFFFFFFF in the seconds and about 860ms in the nano
seconds part, which totals to MINUS 160ms (meaning, the timer should
have expired 160ms ago). I suspect that the timer does not expire for
some reason, and that OS continue to decrement the timer after it
reaches 0, consequently, the timer will never expire.
Anyone encountered that issue or got any idea about what can cause it?
Thanks,
Liron.
- Next message: Iman M. Gowhari: "Re: (gcc) warning: no newline at end of file"
- Previous message: Josef Moellers: "Re: Add symbols to an ELF object file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|