Re: [Q] How to make a task periodic ?

Ingo Molnar (mingo@chiara.csoma.elte.hu)
Sat, 19 Jun 1999 15:54:13 +0200 (CEST)


On Sat, 19 Jun 1999, [ks_c_5601-1987] À̼öÇü wrote:

> 1. I want to make tasks executed periodically and to support EDF scheduling.
> How can I make tasks periodic ?

you might want to use setitimer()+wait() for that?

> 2. I think it may be the problem that schedule() will not be called
> periodically(means predictably). I want to know your opinion.

if you use a RT task and restarting setitimer then you'll get periodic and
predictable timers and events. (all the limitations of Linux's soft RT
apply, but those are typically not a problem in a dedicated system) If you
need something hard-RT then you might want to use RTLinux and kernel
timers.

-- mingo

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/