* [ECOS] Re : [ECOS] Thread priority related query related
@ 2005-03-09 3:37 R. Vamshi Krishna
2005-03-09 6:57 ` Andrew Lunn
0 siblings, 1 reply; 2+ messages in thread
From: R. Vamshi Krishna @ 2005-03-09 3:37 UTC (permalink / raw)
To: ecos-discuss
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.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] Re : [ECOS] Thread priority related query related
2005-03-09 3:37 [ECOS] Re : [ECOS] Thread priority related query related R. Vamshi Krishna
@ 2005-03-09 6:57 ` Andrew Lunn
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2005-03-09 6:57 UTC (permalink / raw)
To: R. Vamshi Krishna; +Cc: ecos-discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-08 20:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-09 3:37 [ECOS] Re : [ECOS] Thread priority related query related R. Vamshi Krishna
2005-03-09 6:57 ` Andrew Lunn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).