I think I'm misunderstanding how the FileChannel's locking features work.
I want to have an exclusive write lock on a file, but allow reads from any process.
On a Windows 7 machine running Java 7, I can get FileChannel's lock to work, but it prevents both reads and writes from other processes.
How can I achieve a file lock that disallows writes but allows reads by other processes?