[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why is poll+gettimeofday so slow?



julien Touche wrote:

> may be, you can explain more your problem ? realtime app ?
> I'm not aware of any "realtime" dev on OpenBSD (please correct me if i'm
> wrong)
> 
> Regards

I am writing a program that accept on its STDIN_FILENO a tuple (v,t) and
schedules an alarm to expire. Once the alrm expired i writes that tuple
on STDOUT_FILENO for who ever wants to be notified.

The tuple (v,t) may be seen as:

struct tmr {
	unsigned	value;
	struct timeval	momment;
};

This application purpose is to allow an client to schedule several
deadline events to be execute upon its time expiration. Got the ideia ?

Actually i have it already wrote! But i did not enjoyed this fact about
OpenBSD timer resolution. Of course, going with something like QNX is
not an option.