What is the mechanism to ensure that 2 different process should not read\write to the same file at a time in java -


i m working in java. have application read & write 1 sample.txt file. , 1 more application read & write same file. , first application run every 1 minute windows service. doubt how, can make sure both applications should r/w @ same time. suggestions plz.

as want lock access different application if understand right. can use filelock here example


Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

How to mention the localhost in android -

php - Calling a template part from a post -