> From: David Kerber [mailto:[EMAIL PROTECTED] > Subject: Re: [OT] How does Synchronized code interact with > other applications > > Ok. So if I were to port the Delphi app to java and run it > as another thread in my app, I would be ok there...
Not necessarily. You will still have the same file open twice, once for the writer, once for the reader. When the writes become visible is still under control of NTFS. If you're going to run the two apps inside the same JVM, do you even need to write a file? You should be able to just pass String objects from one to the other. > Does fileWriter.flush() do almost the same thing? No guarantee - there are two levels of buffering going on. The flush() API pushes the stream information out to the file system, but does not require that it actually be written to disk. Only the sync() does that. I don't know if the results of the flush() are visible to other processes in NTFS. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]