task not relinquishing scheduler busy waiting..

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Aug 31 08:52:49 UTC 2015



On 31/08/15 10:28, Chan Kim wrote:
> But I realized rtems_task_start function only makes the thread in 'READY' state, but not actaully executes it.
> How do I make task 3 get a chance to run (take scheduler) when task 1 is busy waiting? should I set a scheduler algorithm?

Provided task 1 and 3 have the same priority, then you can use a yield 
(e.g. rtems_task_wake_after(RTEMS_YIELD_PROCESSOR)) in the busy waiting 
task to give other tasks of the same priority a chance to execute.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
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