Skip to content
Advertisement

Tag: timer

nasm assembly linux timer or sleep

I’m trying to find a way to make my code wait for two seconds before proceeding. I’m using nasm for Linux in protected mode, so I can only use int 80h. I found a syscall called “alarm” (27) and another called “pause” (29). However, when I try to use those, the program waits and finishes instead of continuing execution. I’ve

How to run hrtimer handler in softirq context?

I have found this tutorial about hrtimer: http://www.ibm.com/developerworks/linux/library/l-timers-list/ I believe the way it uses will run the callback handler in hardirq context,right? But it also said “One interesting aspect is the ability to define the execution context of the callback function (such as in softirq or hardiirq context)” I have checked the hrtimer.h file but it’s really not that intuitive.

Problem in Timers and signal

I have implemented a POSIX timer using timer_create( ) API, and this will generate SIGUSR1 when the timer expires for which i have put a handler code. Now the problem is, if this program receives another SIGUSR1, then the same signal handler will be invoked and caught. Is there any way to prevent this, so that the handler can catch

Linux, timerfd accuracy

I have a system that needs at least 10 mseconds of accuracy for timers. I went for timerfd as it suits me perfectly, but found that even for times up to 15 milliseconds it is not accurate at all, either that or I don’t understand how it works. The times I have measured were up to 21 mseconds on a

Advertisement