Hi ranchers,
I am working on B&S version 2.3.1. I am reading the posts about locking and everybody talks about lock cookie. But my assignment have the method lock without a cookie
-------------------------------------------------------------------------
// 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;
// Releases the lock on a record.
public void unlock(int recNo) throws RecordNotFoundException;
-------------------------------------------------------------------------
After reading the previous posts I am confused as to how I can use lock cookie in my design and implementation. I am stuck here. Please help me.
Did any body get this version of Assignment?
Thanks
Sam