FileLock and file access from concurrent threads..
...the javadoc for the FileLock class states the following:
"...File locks are held on behalf of the entire Java virtual machine. They are not suitable for controlling access to a file by multiple threads within the same virtual machine.
File-lock objects are safe for use by multiple concurrent threads...."
Yet when I apply a lock to a file I am getting access issues from within the same program. The program is heavily multi threaded and it will be a pain to have to release the lock in order to read/write from another thread etc and then reapply the lock etc. Does anyone have any input on this or experience this? Thanks!