Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
内部的には、エントリ プロセッサは悲観的ロックとしてキーのロックとロック解除も実行します。しかし、エントリ プロセッサはペシミスティック ロックよりも効率的です。これらの違いは何ですか?
メーリングリストからの回答のコピー:
EntryProcessor はロックを実行しません。EntryProcessors は他のすべての操作と同じパーティション スレッドで実行されるため、これは必要ありません。したがって、暗黙的なロックのような動作が行われます。これが、EntryProcessors が長時間実行される操作であってはならない理由です!