This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Thread activation disturbed by lower priority threads
- From: "Alois Z." <alois at gmx dot at>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 20 Jul 2007 11:34:59 +0200
- Subject: [ECOS] Thread activation disturbed by lower priority threads
Hi,
In a larger project I have a problem when doing a timed activation of threads.
In the timer alarm handler I check if any thread is ready for activation and post on a semaphore the thread is waiting for.
This works fine when I have only one or two such timed threads the activation jitter of the thread (i.e. the jitter when the threads starts its execution) is ok. But when I add more threads this jitter grows tremendously. Each thread has an own priority. And event the thread with with the highest priority (in my case 2) has this large jitter (more than half of the cycle time).
Is there a way to improve the behavior of the activation. Do I the timed activation the wrong way. Can I improve the timing behavior of the scheduler through the real-time clock settings.
By the way I use the multilevel scheduler.
Thanks,
Alois
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss