6 Task Notifications Flashcards

1
Q

Give three examples of communication objects?

A

Queues, Semaphores, and event groups.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do task notifications compare to semaphores?

A

Task notifications are smaller and faster than semaphores.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the difference between a pending and not pending, notification state?

A

Pending: A task has received a task notification value.
Not Pending: after task has read the task notification value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the benefits and limitations to task notifications?

A

Benefits:
1. Faster than queues, semaphores and event groups
by up to 45%.
2. Less memory than queue, semaphore, or event
group.

Limitations:
1. Cannot send data or event to interrupt handler.
2. Cannot notify to multiple tasks.
3. Can only send one data item (32-bit notification
value)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What state is the notification state on creation of a task?

A

On creation of a task the notification state is not pending.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What API Options are there to notify a task?

A

xTaskNotifyGive() and xTaskNotify().

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Compare xTaskNotifyGive() and xTaskNotify().

A

xTaskNotifyGive(): used as an alternative to binary or
counting semaphore. Used to increament task
notification value (TNV).

xTaskNofity(): More flexible than xTaskNotifyGive(). Can
increment, give a new value to the task notification
value, or set a number of bits in the value.
Can be used in place of an event group.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What api options is there to take a notifications?

A

ulTaskNotifyTake().

How well did you know this?
1
Not at all
2
3
4
5
Perfectly