Dear Servlet, I cannot understand your postings.
One thing I can explain to you. synchronized is a key word in Java. It is not a function.
Re #15734: how to lock a file in Java? I mean how java provide flock()?