5 ms·
If you want locks from the same user you'd use other mechanisms that file locks. File locks are for processes that don't have a lighter weight way to cooperate
by emmelaich 8y ago
If you want locks from the same user you'd use other mechanisms that file locks. File locks are for processes that don't have a lighter weight way to cooperate. (e.g. semaphores.)
Also, there's a reason that databases have processes dedicated to writing (e.g. Postgres writer process, Oracle dbwr)
Fun fact - IBM's MVS didn't have file locks.
- pvg 8y agothere's a reason that databases have processes dedicated to writing That's going to be a little tricky in an embedded db.