Possible Duplicate:
How to atomically rename a file in Java, even if the dest file already exists?
I'm working with a process the might be killed in middle of work. I want to rename a file. Is Java's rename operation an atomic operation?
I am interested in the case of Linux, HP-UX, Solaris, and AIX.