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/AM5726: Semaphore FIFO question

Guru 24520 points
Part Number: AM5726
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hi TI Experts,

Please let me confirm the following question which I posted as below link

e2e.ti.com/.../2548142

There are three tasks(Task A, Task B and Task C).
1. Task A is waiting the semaphore(Pend)
2. Change the Task A priority from Active to inactive(-1)
3. Task B post the Semaphore(Post)
4. Task C is waiting the semaphore(Pend)
Note: The semaphore mode is set as "Semaphore_Mode_COUNTING" or "Semaphore_Mode_BINARY".

At this time, which task A or C will get the semaphore?
According to sysbios user's guide, it was describe about the Semaphore_Mode_BINARY as "Tasks wait for simple counting and binary semaphores in FIFO order without regard to the priority of the tasks." So, the Task A is wating the semaphore on FIFO even though it is inactive. This is why semaphore will take from Task A. Is my understanding correct?

Please not combine this thread to exist thread.

If you have any questions, please let me know.
Best regards.
Kaka