Hello, welcome back.
In this lesson, we should talk about event groups.
Event groups allow a task to wait in the blocked state for a combination of one or more events to occur,
event groups on block or the tasks that are waiting for the same event or a combination of event when
the events occur.
We can use event groups for synchronizing tasks and we can also use them for broadcasting events to
multiple tasks.
Event groups reduce the usage of RAM by allowing us to replace multiple binary semaphores with a single
event group.
The event group is made up of a set of events, flags, an event flag is a boolean value, meaning it's
one or zero, and this is used to indicate whether an event has occurred or not.
An event flag is stored in a single bit and the status of all event flags can be stored in a single
variable.
Event flags are also called event bids because the Apitz.
So to configure this, we can set the the number of events fit in an event group that our system uses
in our free hour to figure out what I mean by this is by default, if the value config use 16 bits is
set, such one, then each event group that we create can contain eight usable events bits.
But if we set you config use 16 bits, it takes to zero.
Then each event group that we create can use twenty four events bits.
So this can be done of course, in our free conflict or HFA.
So this is an overview of events, groups.
Let's go to our I.T. and see how they work and real life of you, have a nice day.