RAM semaphores are fast semaphores designed for minimum function and maximum performance. They should be used to protect a data object when a conflict is unlikely.
The RAM semaphore uses a small area of memory that is available to all users of the RAM Semaphore. The internal structure of this memory is defined only to the implementation. No use of them can be made by others.
The following is an example RAM semaphore structure.
typedef struct { ULONG semwords[8]; /* Semaphore private memory */ } RAMSEM, *PRAMSEM;
The chapter includes the following sections: