This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: periodic threads with kapi?
On Mon, Aug 18, 2003 at 12:32:01PM +0100, Nick Garnett wrote:
> If the OP wants genuine periodic threads then it is probably best to
> set up an interval alarm that posts to a semaphore each time it
> triggers.
Is this the normal way periodic threads are done on ecos? Seems like kind of
a hassle for something as common as periodic threads.
> This would be much cheaper in terms of overhead than using
> cyg_thread_delay(). It also allows the alarm function to detect whether
> the periodic thread has overrun.
Why is there extra overhead? Isn't the delay function implemented with a
thread timer that is an alarm?
--
Ryan Boder
http://www.bitwiser.org/icanoop
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss