This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] RTOS/TM4C1294NCPDT:TM4C1294NCPDT

Guru**** 2482105 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/709670/rtos-tm4c1294ncpdt-tm4c1294ncpdt

器件型号:TM4C1294NCPDT

工具/软件:TI-RTOS

您好!

假设我在 BIOS_start()之前使用动态创建/构造创建了一个任务0 ,并且我想  在任务0运行时使用动态构造/创建来创建任务1。

是否可以在运行时在任务内部创建任务?

如果是、会产生什么影响? 我们需要考虑哪些假设、例如堆栈/堆大小?

提前感谢您。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Harshal、

    是的、您可以从另一个任务创建一个任务。 新任务将具有它自己的堆栈。 如果你没有在你为 Task_create 调用提供的 Task_Params 结构中提供堆、堆栈被分配。

    Todd