Please treat the following a a little brainstorm before the first cup of strong coffee this morning. Ok, you have done file.writeByte(flag). Does that write have to be done immediately? Like right now? How can you ensure that it is?
(I might be a little hasty on that one, I'll just check the API retrospectively)
Yep I was :roll: The "s" in your mode should ensure the file gets flushed. There would be no harm in trying a file.flush() just in case the OS is not honouring the implicit flush. But there is no flush() method on RandomAccessFile.
So it's going to be something else.
What OS are your using? No, that's not going anywhere.
Is there just one instance of that RandomAccessFile object (file) you are synchronizing the threads on?
In my assignment the delete flag is
two bytes, yours is just one byte?
[ September 02, 2006: Message edited by: Barry Gaunt ]