hi,
I have a probelm,two thread from two different JVM's accessing the same file causing improper data for the 2 JVM's resulting in improper data.
If it same JVM i can go for synchronized block ,wil not happen with independent JVM.soluion pls?
vivek_green
0
Newbie Poster
Recommended Answers
Jump to PostYou will need to use file locking. There are methods for controlling this in FileChannel.
All 3 Replies
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
vivek_green
0
Newbie Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.