ABSTRACT

Event flags provide a powerful tool for thread synchronization. Event flags can be set or cleared by any thread and can be inspected by any thread. Threads can suspend while waiting for some combination of event flags to be set. Application threads can suspend while attempting to get any logical combination of event flags from a group. The characteristics of each event flags group are found in its Control Block. An Event Flags Group Control Block can be located anywhere in memory, but it is common to make the Control Block a global structure by defining it outside the scope of any function. Event flags provide a powerful tool for thread synchronization. Event flags groups do not support a concept of ownership, nor is there a limit to how many threads can access an event flags group. Application threads can suspend while attempting to get any logical combination of event flags from a group.