Helen Ma wrote:The reserveDVD and getDVD are synchronized, but the setCopy is not. And there is a chance that client 1 and client 2 concurrently call the setCopy method.
The glass is neither half full or half empty. It is too big. But this tiny ad is just right:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your databasehttps://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database