TI中文支持网
TI专业的中文技术问题搜集分享网站

POSIX线程是否等同于SYS/BIOS中的Task线程,谢谢!

尊敬的工程师:

您好,我看到MSP432中关于网络的部分都使用了POSIX线程,这个POSIX线程是不是等同于我们SYS/BIOS的Task线程?我是不是都可以使用Task线程来替换这个POSIX线程,还是说这些网络的例程只能使用POSIX线程,谢谢!

祝您好心情

Susan Yang:

POSIX is an IEEE industry API standard for OS compatibility. POSIX is not an RTOS. It resides on top of either TI-RTOS or FreeRTOS. As you can see with the following diagram, POSIX hides the underlying RTOS from the application.

SYS/BIOS also provides a subset of the POSIX thread (pthread) APIs. These include pthread threads,mutexes, read-write locks, barriers, and condition variables. The pthread APIs can simplify porting applications from a POSIX environment to SYS/BIOS, as well as allowing the same code to be compiled to run in a POSIX environment and with SYS/BIOS. As the pthread APIs are built on top of the SYS/BIOS Task and Semaphore modules, some of the POSIX APIs can be called from SYS/BIOS Tasks.

processors.wiki.ti.com页面上旧的“ SYS / BIOS中的POSIX支持”的内容已移至POSIX用户指南文档中,该文档现在已包含在SDK中。例如:在以下页面上搜索POSIX:

另外也可以参考

,

yongtao ma59:

谢谢,非常感谢!

,

Susan Yang:

很高兴能帮到您!

赞(0)
未经允许不得转载:TI中文支持网 » POSIX线程是否等同于SYS/BIOS中的Task线程,谢谢!
分享到: 更多 (0)