A fundamental of file systems since their inception has been their locking mechanisms. These exist so that different users and applications working on the same file (or region of a file) ...
I'm trying to control concurrent access to a file in a Win32 application. The file is a SQLite database, and on Windows SQLite opens files via CreateFile() with FILE_SHARE_READ and FILE_SHARE_WRITE ...