Tool/software: TI-RTOS
Hi TI Experts,
Please let me confirm the following questions.
[Question]
Would you please teach me what behavior will the TI-RTOS be with following case?
If you have any question, please let me know.
Best regards.
Kaka
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.
Tool/software: TI-RTOS
Hi TI Experts,
Please let me confirm the following questions.
[Question]
Would you please teach me what behavior will the TI-RTOS be with following case?
If you have any question, please let me know.
Best regards.
Kaka
Hi Kaka,
Answer to Q1: Task A does not get placed on the inactive queue until the timeout happens and the Task is unblocked.
Answer to Q2: The timer continues to run until timeout expires.
Answer to Q3: Task A is unblocked and placed on the inactive queue after the 500ms timeout expires. The Semaphore post from Task B will increment the semaphore count to 1 and does not have any effect on Task A. In other words, Task A semaphore pend fails right after the 500ms timeout expires.
Answer to Q4: Yes
Best,
Ashish
Hi Ashish,
Please let me confirm the following question about Q4, just in case.
Now, Task A is waiting the semaphore and requests to change the state to inactive by Task B. If Task B post the semaphore before the timeout, Task A will change the statue to inactive with having the resource. Is my understanding correct?
Best regards.
Kaka