[ECOS] Re: how to implement EDF scheduling in eCos

Nodir Kodirov nodir.qodirov@gmail.com
Wed Jan 20 15:19:00 GMT 2010


Hi John,

> by using the sched_info parameter of the
> cyg_thread_create() call as the address of a scheduler-specific data
> structure.

Can you give more detail explanation how to do it? Example will be great!

Thanks,
Nodir.


2010/1/21 John Dallaway <john@dallaway.org.uk>
>
> [ snip ]
>
> > cyg_thread_create(4, simple_program, (cyg_addrword_t) 0, "Thread A",
> > (void *) stack[0], 4096, &simple_threadA, &thread_s[0],       11, 12, 13);
> > cyg_thread_create(4, simple_program, (cyg_addrword_t) 1, "Thread B",
> > (void *) stack[1], 4096, &simple_threadB, &thread_s[1],       21, 22, 23);
> > printf("Created threads with extended properties\n");
> >
> > Here 11,12,13 (and 21,22,23) are deadline, wcet, period of the first
> > (second) thread respectively.
>
> To avoid changing the kernel API, I suggest that you pass the deadline,
> wcet and period by using the sched_info parameter of the
> cyg_thread_create() call as the address of a scheduler-specific data
> structure.

--
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