Instead of creating a cache with lock objects wouldnБ─≥t it be easier to use a semaphore for each cache where you want to achieve strong reader-Writer consistency? Then every time before reading/writing you acquire the semaphore first. I guess this semaphore does essentially what youБ─≥re doing manually. Regards Thomas. On 28.12.21 at 10:41, jay.et...@gmx.de wrote: And if anyone knows a different way to achieve entire-cache-locks in Optimistic Serializable transactions: We always appreciate the help. Jay
From: Gurmehar Kalra <gurmehar.ka...@hcl.com>
Hi,
Regards, Gurmehar Singh
From: Alexei Scherbakov <alexey.scherbak...@gmail.com>
[CAUTION: This Email is from outside the Organization. Unless you trust the sender, DonБ─≥t click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.] Hi.
You can try OPTIMISTIC SERIALIZABLE isolation, it might have better throughput in contending scenarios. But this is not the same as RW lock, because a tx can be invalidated after a commit if a lock conflict is detected. No RW lock of any kind is planned, AFAIK.
п╡я┌, 7 п╢п╣п╨. 2021 пЁ. п╡ 23:22, <jay.et...@gmx.de>:
--
Alexei Scherbakov ::DISCLAIMER:: The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects. |
- Transactional Reader Writer Locks jay.ethan
- Re: Transactional Reader Writer Locks Alexei Scherbakov
- RE: Transactional Reader Writer Locks jay.ethan
- RE: Transactional Reader Writer Locks jay.ethan
- Re: Transactional Reader Writer Locks Alexei Scherbakov
- RE: Transactional Reader Writer L... jay.ethan
- Re: Transactional Reader Writ... Stephen Darlington
- RE: Transactional Reader ... jay.ethan
- RE: Transactional Reader Writer Locks Gurmehar Kalra
- RE: Transactional Reader Writer Locks jay.ethan
- Re: RE: Transactional Reader Writer Lo... don . tequila
- RE: RE: Transactional Reader Writ... jay.ethan
- Re: RE: Transactional Reader ... Alexei Scherbakov
- RE: RE: Transactional Rea... jay.ethan
- Re: RE: Transactional Rea... Pavel Tupitsyn
- RE: RE: Transactional Rea... jay.ethan