Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More than one read/write at a time to same file and file collapses

Status
Not open for further replies.

k24743

Technical User
Oct 7, 2000
11
FI

I have problem a big problem when my java program which is actually CGI-pr. is reading or writing to file. Everything goes as it should when there is only one user at a time but when two users update the same file at a same time there is problems..
So I´m asking if there is any ways to handle this kind of situation.. I hope I did my self clear! ;))

thanx for all tips!

t. Marko
 
Make the file update method synchronized.

Bye, Otto.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top