1
00:00:00,860 --> 00:00:01,850
Hello, welcome back.

2
00:00:01,880 --> 00:00:04,610
In this lesson, we should talk about event groups.

3
00:00:06,260 --> 00:00:13,220
Event groups allow a task to wait in the blocked state for a combination of one or more events to occur,

4
00:00:13,970 --> 00:00:20,900
event groups on block or the tasks that are waiting for the same event or a combination of event when

5
00:00:20,900 --> 00:00:22,150
the events occur.

6
00:00:23,870 --> 00:00:30,200
We can use event groups for synchronizing tasks and we can also use them for broadcasting events to

7
00:00:30,200 --> 00:00:31,310
multiple tasks.

8
00:00:32,830 --> 00:00:40,570
Event groups reduce the usage of RAM by allowing us to replace multiple binary semaphores with a single

9
00:00:40,570 --> 00:00:41,440
event group.

10
00:00:43,540 --> 00:00:52,000
The event group is made up of a set of events, flags, an event flag is a boolean value, meaning it's

11
00:00:52,000 --> 00:00:57,220
one or zero, and this is used to indicate whether an event has occurred or not.

12
00:00:57,760 --> 00:01:05,290
An event flag is stored in a single bit and the status of all event flags can be stored in a single

13
00:01:05,290 --> 00:01:05,800
variable.

14
00:01:06,710 --> 00:01:11,600
Event flags are also called event bids because the Apitz.

15
00:01:13,710 --> 00:01:22,200
So to configure this, we can set the the number of events fit in an event group that our system uses

16
00:01:22,380 --> 00:01:31,010
in our free hour to figure out what I mean by this is by default, if the value config use 16 bits is

17
00:01:31,020 --> 00:01:37,810
set, such one, then each event group that we create can contain eight usable events bits.

18
00:01:38,110 --> 00:01:42,230
But if we set you config use 16 bits, it takes to zero.

19
00:01:42,540 --> 00:01:46,370
Then each event group that we create can use twenty four events bits.

20
00:01:46,680 --> 00:01:50,270
So this can be done of course, in our free conflict or HFA.

21
00:01:51,640 --> 00:01:53,950
So this is an overview of events, groups.

22
00:01:55,000 --> 00:01:59,980
Let's go to our I.T. and see how they work and real life of you, have a nice day.
