20.6. Optimistic concurrency control (OCC)
Optimistic schemes for concurrency control are based on the premise that conflict is unlikely. We should therefore be careful to avoid heavyweight concurrency control mechanisms but we must still ensure a serializable execution. OCC also aims to achieve high availability of objects. The idea is to minimize delay at transaction start. OCC is therefore appropriate for certain application areas where these conditions and requirements hold; that is, for applications which need a transaction system, but where it is unusual for different transactions to touch the same object, and which need real-time response.
For example, suppose my medical record is being updated by the hospital administration some time ...
Get Operating Systems: Concurrent and Distributed Software Design now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.