This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Re : Thread priority related query related
- From: Andrew Lunn <andrew at lunn dot ch>
- To: "R. Vamshi Krishna" <vamshi at cse dot iitb dot ac dot in>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 8 Mar 2005 21:58:27 +0100
- Subject: Re: [ECOS] Re : [ECOS] Thread priority related query related
- References: <422E130B.5060906@cse.iitb.ac.in>
On Wed, Mar 09, 2005 at 02:33:07AM +0530, R. Vamshi Krishna wrote:
> First sorry for the mistake in the subject line.
> It is periodicity and not priority.
>
> I want to run a few threads. I want to ensure that the scheduler
> schedules them such that
> there is a guarantee that the thread will be executed once every 't'
> time units.
>
> I will include the MLQ scheduler.
>
> The t will be the periodicity.
There is no such thing as a guarantee.....
Anyway, a simply scheme would be to have a timer set to call a DSR
with period t. Each thread then waits on a different semaphore. The
DSR posts on the semaphores so waking the treads. You can acheive
something similar using flags.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss