Round-robing/timesliced tasks disturbed by rate-monotonic task

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jun 21 08:03:26 UTC 2012


On 06/20/2012 09:05 PM, Wendell Silva wrote:
>
> So the question now is: Is the following code:
>      if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
>          heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
> really required in _Thread_Dispatch()?

Yes, this is required for the THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE 
algorithm.  An alternative is THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE.

As Joel already mentioned it might be useful to add an option to the Classic 
API to use THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE instead of 
THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE.

-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list