Task creation

Joel Sherrill joel.sherrill at OARcorp.com
Thu Apr 11 11:29:49 UTC 2002

Angelo Fraietta wrote:
> Should I be able to create and start task as I want them.
> For example, can I do this in this order?
> create task 1
> Start task 1
> create task 2
> start task 2
> or do all the tasks have to be created before you can start any?

Good question.  From RTEMS perspective you can create and start
them in any order assuming you create task X before you start it.
But the normal scheduling rules apply so if the creating task
is preemptible, a newly started task may preempt it instantly.
If you use the "normal" RTEMS Init task setup, it is not preemptible
so when that task blocks or deletes itself, the created set
of tasks compete for resources at that point.

> --
> Angelo Fraietta
> PO Box 859
> Hamilton NSW 2303
> Home Page
> http://www.users.bigpond.com/angelo_f/
> There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
> There are those who seek knowledge to be known by others - that is VANITY
> There are those who seek knowledge in order to serve - that is LOVE
>     Bernard of Clairvaux (1090 - 1153)

Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985

More information about the users mailing list