How is it possible to define the scheduling strategy

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Locked
PelWe

How is it possible to define the scheduling strategy

Post by PelWe »

Hi,

I'm new to ERIKA and like the approach esp. with the eclipse integration. But I'm still not sure how to define the scheduling strategy, as OSEK supports non-preemptive, full-preemptive and mixed. Or is it the case that the selection of a conformance class determines the scheduling strategy?
e.guidieri

Re: How is it possible to define the scheduling strategy

Post by e.guidieri »

Hi,

you can select the scheduling strategy for each TASK trought the SCHEDULE field of TASK OIL element. Two possible value are allowed:

FULL: This means that the TASK is full Preentive, so any TASK with priority greater than his can preempt him.
NON: This means that TASK priority is only used to handle the ready queue. When the TASK is started it runs until it terminate (TerminateTask, ChainTask primitives) or wait on an event (if the TASK can wait, [extended TASK + Private Stack]), or successfully try to yeld it self with Schedule primitive (that low the TASK execution priority to the ready priority one for the call).

Regards
PelWe

Re: How is it possible to define the scheduling strategy

Post by PelWe »

Thanks for your quick reply.

So just to clarify: In case I've only taks with Full Schedule, does this mean that the overall scheduling strategy would be Preemptive?

Cheers
e.guidieri

Re: How is it possible to define the scheduling strategy

Post by e.guidieri »

Exactly.

Cheers
janakiram

Re: How is it possible to define the scheduling strategy

Post by janakiram »

Hi All,

I understood how to set a task in preemptive and non preemptive, can any one please explain how to schedule a task in Mixed Preemptive scheduling ?
where we have to set that preemptive threshold value in OIL ?
----
Thanks & Regards,
Janaki Ram
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: How is it possible to define the scheduling strategy

Post by paolo.gai »

Hi!

This is done in OIL using "Internal Resources". or you can change directly the dispach priority in the generated eecfg.c code.

Ciao,

PJ
Locked