Inter-process synchronization in Java using FileLock
ยท 2 min read
On a work project, we needed to fix a concurrency issue where multiple processes would write at the same time in the same file, which led to file corruption.
To fix this issue, we have opted to use the Java FileLock that has been available since Java 1.4.