The main problem with a pessimisticapproach is that transactions have to wait for each other.
悲观锁定方法最主要的问题是,事务之间必须互相等候。
2
If the application access pattern is predominately update access, then pessimisticapproach might be advantageous in that it avoids optimistic concurrency update failures.
如果应用程序访问模式主要是更新数据,那么乐观锁定方法能有利地避免乐观并发性更新的失败。
3
As described previously, the intent of the pessimisticapproach is to ensure that the data loaded into the entity bean is locked during the entire duration of a transaction.