I am using java program to read/write files in a server which is accessible to many others.
I want to make sure that if somebody will not get any error while accessing the file.
I have one solution to create locking mechanism which can avoid concurrency issue but problem is that i don't have permission to run scripts on the server or check anything.
This is very common problem but i am not able to find the exact solution for this.