alejandrina wrote:
On Jul 13, 6:55 pm, "Oliver Wong" <ow...@castortech.com> wrote:
...
Yes, I have read all this. So, what is the real meaning of "advisory"?
...
"Advisory", in conjunction with locking, usually means that threads that
do not choose to play by the rules can go ahead and access the protected
resource regardless of the state of the locks.
If that is the intended interpretation, I don't think the quoted passage
helps with understanding your problem, because you have already checked
that your threads only access the resource while in possession of an
exclusive lock on it.
Have you tried calling force() after the write? Maybe there is some
buffering in the FileChannel that is delaying the effect of the write
past the release of the lock.
Patricia