Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
If the specified record is already locked, the current thread gives up
the CPU and consumes no CPU cycles until the record is unlocked.
SCJP, SCJD, SCWCD, SCBCD
scja|scjp|scjd|scwcd|scbcd|scdjws|scmad
If there’s even a chance that your design could lead to deadlock (it doesn’t have to actually cause deadlock right before the assessor’s eyes) then you can probably kiss that $400 goodbye.
SCJP, SCJD, SCWCD, SCBCD
SCJP, SCJD, SCWCD, SCBCD
SCJP, SCJD, SCWCD, SCBCD
Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
If the specified record is already locked, the current thread gives up
the CPU and consumes no CPU cycles until the record is unlocked.
// Locks a record so that it can only be updated or deleted by this client.
// If the specified record is already locked, the current thread gives up
// the CPU and consumes no CPU cycles until the record is unlocked.
public void lock(int recNo) throws RecordNotFoundException;
Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
Don't get me started about those stupid light bulbs. |