DEVFYI - Developer Resource - FYI

What is optimistic concurrency?

JDBC Interview Questions and Answers


(Continued from previous question...)

What is optimistic concurrency?

An optimistic approach dispenses with locks ( except during the actual update ) and usually involves comparison of timestamps, or generations of data to ensure that data hasn't changed between access and update times. It's generally explained that the term optimistic is used because the expectation is that a clash between multiple updates to the same data will seldom occur.

(Continued on next question...)

Other Interview Questions