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: The difference between Task and pthread

Part Number: MSP432E401Y


Tool/software: TI-RTOS

Hi:

    I'm debugging the ti_154_gateway_ibm code on the MSP432E401Y launchpad,there are  two questions as follows:

   (1)I don't understand why there are tasks and pthreads in programs,what is the difference between Tasks and pthreads;

  (2)Which is the highest priority?MqttClient and MqttClientThread have the same priority?

thanks!

           

  • Hi there!

    TI RTOS supports a subset of the POSIX API which allows for more portable code in our products as well as for customers. For example we support pthreads, which under the covers are implemented using SYS/BIOS tasks. This also means that priorities are equivalent between tasks and pthreads. A task priority 5 is the same priority with a pthread with priority 5. Higher number priorities run before lower number priorities. For more information on our POSIX support, please see this page:
    processors.wiki.ti.com/.../BIOS_POSIX_Thread_(pthread)_Support

    As for why they are both used in the code you are looking at, I can only guess that the original implementation used tasks and some parts were converted or added using POSIX API's. Which files exactly were you looking at?

    If you have any further questions please let me know, thanks.

    Sean
  • We are now shipping the POSIX UG in the SDK (docs\tiposix\Users_Guide). It has the most up to date information.

**Attention** This is a public forum