Hello Yaron,
On 04/08/2019 15:05, yaron o wrote:
hello all,
In my application i am using rtems_task Init(rtems_task_argument
argument) as my main (and only) task and that is where the application
start to work , i want to add one more task with the lowest priory.
my first question is what is the priority of the Init Task ?
the default priority is 1, you can change it via configuration options:
https://docs.rtems.org/branches/master/c-user/configuring_a_system.html#classic-api-initialization-tasks-table-configuration
and second if i create one more task, i will have two tasks (init and
new one) in my application that switch according to the priority? or
the Init task will not longer exist ( because i'm not creating it i just
call it in the begging with the command rtems_task
Init(rtems_task_argument argument) )?
Task switching is always done by priority, however, in uniprocessor
configurations the Init task is non-preemptible by default.
https://docs.rtems.org/branches/master/c-user/task_manager.html#task-mode
--
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.hu...@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users