This is the mail archive of the ecos-discuss@sourceware.org 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: how to implement EDF scheduling in eCos


Hi Nodir

Nodir Kodirov wrote:

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

I was envisaging something like this:

  struct cyg_edf_sched_info_t {
    cyg_tick_count_t deadline;
    cyg_tick_count_t wcet;
    cyg_tick_count_t period;
  };

  cyg_edf_sched_info_t myinfo = {11, 12, 13};
  cyg_thread_create((cyg_addrword_t) &myinfo, simple_program, ...

John Dallaway
eCos maintainer

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