hmmm...in my lock method (which adds recNo, randomLong to a hashMap) can I just call the raf.lock() to lock the file...i think so? then just lock the section where this record is...thoughts, comments appreciated...
posted 11 years ago
Locking the entire file is not a good idea as it essentially brings concurrency to zero. What you need to investigate is logical per-record locks.