This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why it is a good programming style to delete the first task in RTX?

Why it is a good programming style to delete the first task in RTX? (I have read it in the documentation.) I would like to use this task for control that other tasks are executed well. What is a problem to do so?

Parents
  • Sounds more like bad editing. If the author really thinks it meaningful to kill the first task, then the author should have given the reasons too. You don't teach a child what to do/don't do without giving some reasons why.

    main() should minimize the need for stack space since you wan't the majority of work to happen in tasks.

    But your first task should not really be too different from other tasks that any "style" should dictate that you need to kill it.

Reply
  • Sounds more like bad editing. If the author really thinks it meaningful to kill the first task, then the author should have given the reasons too. You don't teach a child what to do/don't do without giving some reasons why.

    main() should minimize the need for stack space since you wan't the majority of work to happen in tasks.

    But your first task should not really be too different from other tasks that any "style" should dictate that you need to kill it.

Children