Forum Discussion
hpxwj
Nov 17, 2021Copper Contributor
Why several system processes can access a file at the same time in Win10?
Check this StackOverflow post: https://stackoverflow.com/questions/13420057/view-open-file-handlers-for-a-process-on-windows
- KuinoxCopper Contributor
Hello hpxwj,
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.
https://en.wikipedia.org/wiki/File_locking#In_Microsoft_WindowsFor example, one process can lock a file for write, while allowing any other process to read the file.
- hpxwjCopper ContributorHello,Kuinox,
How can I check which process access this file actually?- KuinoxCopper Contributor
Check this StackOverflow post: https://stackoverflow.com/questions/13420057/view-open-file-handlers-for-a-process-on-windows
- hpxwjCopper ContributorHow can I check which process access this file actually?