c*r 发帖数: 278 | 1 interval timer and SIGALRM.
use alarm() or setitimer().
set proper handler for SIGALRM |
|
r*********r 发帖数: 3195 | 2 alarm() 's timer is not very accurate. get/setitimer() can be precise up to
microsec. |
|
j***y 发帖数: 87 | 3
you can try setitimer for BSD based (4.2 or later) system,
or settimer for POSIX based system. They have higher resolution
than alarm, although the accuracy may be machine-dependent. |
|
t******q 发帖数: 117 | 4 rt,
have a system call setitimer(),
has ms level timer will give SIGALARM sig when expired.
is it a real time timer?
thanks
Thomas |
|
t******q 发帖数: 117 | 5 Seems setitimer() can be used only one in a process.
and 1/1000 is not precise enough for a timer.
looking at linux real time implementation.
want to know the last news about the POSIX 1.b implement on
linux.
would you please give me some iformation?
since I can not find even at the last 2.4.0 kernel.
the kernel.org can only dl the souce code no much
information
gaven.
Thanks |
|