[ECOS] Re : [ECOS] Thread priority related query related

Andrew Lunn andrew@lunn.ch
Wed Mar 9 06:57:00 GMT 2005


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



More information about the Ecos-discuss mailing list