To prevent two EMS servers from using the same store file, each server restricts access to its store file for the duration of the server process. This section describes how EMS manages locked store files.
On Windows platforms, servers use the standard Windows CreateFile function, supplying
FILE_SHARE_READ as the
dwShareMode (third parameter position) to restrict access to other servers.
On UNIX platforms, servers use the standard fcntl operating system call to implement cooperative file locking:
To ensure correct locking, we recommend checking the operating system documentation for this call, since UNIX variants differ in their implementations.