NX(URLyBird):About locking :

// Locks a record so that it can only be updated or deleted by this client. // Returned value is a cookie that must be used when the record is unlocked, // updated, or deleted. If the specified record is already locked by a different // client, the current thread gives up the CPU and consumes no CPU cycles until // the record is unlocked. public long lockRecord(long recNo) throws RecordNotFoundException; I don't understand these: "the current thread gives up the CPU and consumes no CPU cycles until the record is unlocked." if i write something like: while(...){ wait(); } can this "give up the CPU"??