Nov 17 2021 04:33 AM
When a process access a file, it ask the OS to lock for it.
Often, the processes does not ask for an exclusive lock and multiple processes can access the files at the sames time.
For example, one process can lock a file for write, while allowing any other process to read the file.
Nov 23 2021 06:23 AMSolution
Check this StackOverflow post: https://stackoverflow.com/questions/13420057/view-open-file-handlers-for-a-process-on-windows