Event flag

Event flag

An event flag is a process synchronization primitive in the OpenVMS operating system. It has two possible states, "set" or "cleared". The following basic primitive operations are provided:

* Set event flag ($SETEF)
* Clear event flag ($CLREF)
* Wait for event flag ($WAITFR)--if the flag was clear, this would make the process wait until it was set. If the flag was already set, this would immediately return, leaving the flag set.

Additional synchronization operations are:
* $WFLOR--wait for any of the specified event flags to be set.
* $WFLAND--wait for "all" the specified event flags to be set.

Event flags can be either "local" (per-process) or "common" (accessible by more than one process). Each process has its own set of 64 local flags, numbered 0-63. It is also possible to "associate" the process with up to 2 sets of common event flags. These come in sets of 32 each, and the process can assign them numbers 64-95 or 96-127. They come into existence when the first process associates with them, and disappear when the last process removes its association.

Every potentially time-consuming asynchronous system call (QIO among others) includes an argument specifying the number of an event flag to set on completion.

Compare semaphore.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • event flag — įvykio požymis statusas T sritis automatika atitikmenys: angl. event flag vok. Ereignis Kennzeichen, n rus. признак наступления, m; признак события, m pranc. flag d événement, m …   Automatikos terminų žodynas

  • flag d'événement — įvykio požymis statusas T sritis automatika atitikmenys: angl. event flag vok. Ereignis Kennzeichen, n rus. признак наступления, m; признак события, m pranc. flag d événement, m …   Automatikos terminų žodynas

  • Flag of Denmark — Name Dannebrog Use Civil and state flag and civil ensign …   Wikipedia

  • Flag of Germany — Name Bundesflagge und Handelsflagge Use Civil and state flag and civil ensign …   Wikipedia

  • Flag of Chile — Use National flag and ensign Proportion …   Wikipedia

  • Flag of Dorset — Names St Wite s Cross, The Dorset Cross Proportion 3:5 Adopted 2008 Designed by Stephen Coombs and David White The …   Wikipedia

  • Flag of Connecticut — Use Civil and state flag Adopted …   Wikipedia

  • Flag day (disambiguation) — Flag day can mean:* A flag Day day to fly a flag of a certain area or a day set aside to honor an event specifically involving a national flag. **Flag Day in the United States * In the UK, Flag Day refers to a day when a charity raises funds by… …   Wikipedia

  • Flag Hill (Houtman Abrolhos) — Flag Hill is the highest hill on East Wallabi Island, and the highest point in the Houtman Abrolhos, an archipelago off the coast of Western Australia. It is located in the north east of the island;Australia 1:100000 Topographic Survey, Sheet… …   Wikipedia

  • Flag day (software) — Flag day, as used in software engineering, is a change which requires a complete restart or conversion of a sizable body of software or data. The change is large and expensive, and in the event it doesn t work reversing the change is similarly… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”