What happens when a semaphore is issued or signaled in RTOS?

Let there be 6 tasks, out of 6, 4 (task) are waiting for Semaphore. When a semaphore is signaled, what decision is made by RTOS

  • what tasks to choose from the waiting list (for semaphore)
  • if one task is selected from the waiting list, what will happen to the remaining task, when will they be completed.
  • when a task with a higher priority is running.

Is the solution the same for all RTOS ?

+4
source share
1 answer

, RTOS , . , RTOS , , , .

, , , :

  • , , .
  • .
  • , , , . , , , , .

RTOS , RTOS. , , , , . , , , , .

: , , , . , . , , , , , , . , .

. , . . , . , , .

, , , .

+5

Source: https://habr.com/ru/post/1622442/


All Articles