multithreading - Will zipping a directory in Java affect other processes using the same files? -
I am using the java.util.zip library and ZipOutputStream to create a directory of zip file and all its Under Files and Directories In my application, it is possible that another thread could access these files during compression. I'm not a file compression (or thread-safety, expert for that matter), so my question is, will zip a directory, while some others are accessing those files, which affect any process Does it?
Only if processes have opened such files, which facilitate reading through other processes (It usually requires an OS-specific flag to specify permissions.) So this is definitely possible, but this is not a common case.
Comments
Post a Comment