This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re : Thread priority related query related


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]