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/MSP432E401Y:任务和 pthread 之间的区别

Guru**** 2577385 points
Other Parts Discussed in Thread: MSP432E401Y

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/779839/rtos-msp432e401y-the-difference-between-task-and-pthread

器件型号:MSP432E401Y

工具/软件:TI-RTOS

您好:

   我正在调试 MSP432E401Y launchpad 上的 ti_154_gateway_IBM 代码, 有两个问题、如下所示:

  (__LW_AT__1)我不明白为什么程序中有任务和 pthread,任务和 pthread 之间的区别是什么;

 (__LW_AT__2)(最高优先级)?MqttClient 和 MqttClientThread 具有相同的优先级?

谢谢!

      

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

    TI RTOS 支持 POSIX API 的子集、因此我们的产品以及客户都可以移植到更便于移植的代码。 例如、我们支持 pthreads、在封面下方使用 SYS/BIOS 任务实现了 pthreads。 这也意味着任务和 pthread 之间的优先级是等效的。 任务优先级5与优先级为5的 pthread 具有相同的优先级。 优先级越高、优先级越低。 有关我们的 POSIX 支持的更多信息、请参阅以下页面:
    processors.wiki.ti.com/.../BIOS_POSIX_Thread_(pthread)_Support

    至于它们在您查看的代码中使用的原因、我只能猜测最初的实现使用的任务和某些部件是使用 POSIX API 转换或添加的。 您正查看哪些文件?

    如果您有任何其他问题、请告诉我、谢谢。

    肖恩
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我们现在在 SDK 中提供 POSIX UG (docs\tiposix\users_Guide)。 它具有最新信息。