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.

[参考译文] MSP432E401Y:MSP432E401Y TI-RTOS 线程优先级

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

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1372356/msp432e401y-msp432e401y-ti-rtos-thread-priorities

器件型号:MSP432E401Y

工具与软件:

你好

我将在 MSP432E401Y 上使用 TI-RTOS,我想在使用 pthread_create ()时澄清线程优先级数字。

数字越高、表示线程的优先级越高。

较少的线程是较低优先级的线程。

提前感谢

佩里

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

    使用pthread_create()创建线程时、可以使用pthread_attr_t结构和sched_param成员指定线程的优先级。 优先级通常用sched_priority域来设置、其中较高的值对应较高的优先级。

    例如,如果你想创建一个优先级为5的线程,你会sched_prioritysched_param在调用前把结构的字段设置为5pthread_create()

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

    你好

    我在我的应用中看到了这种情况的反转、它具有较高的优先级、而具有较低优先级的数字则具有较低的优先级?

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

    尊敬的 Perry:

     我希望这篇文章能够回答您的问题。  

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/427818/sys-bios-task-priority-meaning