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.

problem of TI-RTOS program

Other Parts Discussed in Thread: SYSBIOS

hi  TI professors,

    I used TI-RTOS for the first time.  I would like to know the relationship between semaphore and task in  .cfg file. When MCU power on ,which semaphore and task will run  first. 

  Thanks!

  • Hello,

    Which version of TI-RTOS are you using or planning on using?
    Depending on this, you might want to read up about SYSBIOS. There is an API document as well as Users guide.
    SYSBIOS is the kernel portion of TIRTOS which contains information on Semaphore and Tasks.

    Just to sort of answer your question though, The highest priority Task will execute first. If all Task are the same priority,
    then the first created of the same priority will execute first.

    As far as Semaphore goes, a Semaphore is used to block a Task until critical data has arrived. You can Post a Semaphore or Pend on one.

    Judah