Do I have to synchronize read-only access to a text file?

Bozidar Dangubic

My servlet reads the contents of a text file which I access using a File object.

What issues are involved when this file is read concurrently by several different threads? Do I have to synchronize access to the file, or does it not matter when access is read-only?

Should not matter if the file is only for reading. Make sure that you close the file when you are done using it.
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact