|
Summary: In the pessimistic locking approach, your program must explicitly obtain a lock using transaction on one or more objects before making any changes.
OverviewIn the pessimistic locking approach, your program must explicitly obtain a lock using transaction on one or more objects before making any changes. This prevents any other user from making changes to those objects, so you can be sure that committing the operation will succeed. Once changes are completed, the objects are unlocked so that others can make changes to them. In the context of the cache, this means you cannot have multiple users performing read, take or update operations with the same UID or matching objects under a transaction. In general an update operation that is using a transaction must wait for all other users to commit or rollback their transactions, and only then can it be completed successfully. |
(works on Firefox 2 and Internet Explorer 7)