db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Al Eridani <al.erid...@gmail.com>
Subject Re: How does Derby service lock contention among multiple threads?
Date Wed, 16 Jan 2013 17:15:34 GMT
On Wed, Jan 16, 2013 at 1:31 AM, Knut Anders Hatlen
<knut.hatlen@oracle.com> wrote:

> Derby grants locks in the order they were requested. So if thread 1
> requested the lock on a certain row before thread 2 did, thread 1 will
> be granted the lock on that row before thread 2. (Unless they both
> requested a shared lock on the row, in which case they may be granted
> the lock at the same time.)

Thank you, Knut, that's what I wanted to find out.

Al

Mime
View raw message