Hello are htable protected for multiple write access?
can i safely update htable from one process and be sure another process will access it for write operation ? if yes is the lock on all the htable or only on the bucket where the key belongs ?
Thanks.
Hello,
On 21.02.24 10:30, Patrick Karton via sr-users wrote:
Hello are htable protected for multiple write access?
can i safely update htable from one process and be sure another process will access it for write operation ? if yes is the lock on all the htable or only on the bucket where the key belongs ?
yes, read and write are protected by a lock on the bucket where the key is stored.
Only if you need to do a read, plus some other operations to update the item and then write back, without letting other process to update the item meanwhile, you need to do locking using the functions provided by htable in this scope.
Cheers, Daniel