hi;
So you have to make sure that a write operation for a given record at a given time is allowed to one and just one thread.
you must insure that only only only only one thread at a time will access(read, update, delete, create) the database file.
regarding the mode local or remote you must insure that your instance is valid for multi-threading accesses. here you can find many benchmark code to
test your data class search about it.
therefore your locking system only needs to be concerned with multiple concurrent clients of your server.
as business wise you can think in logical-record locking and use lock and unlock when you implement your business client class.
regards.
scjp, scjd in progress (from 1/8/2007 till now ).