所使用的另一个进程读取文件进程、文件

2023-09-04 02:46:58 作者://.夜夜激情-

有读取文件所使用的另一个进程的能力?

Is there ability to read file that is used by another process?

感谢。

推荐答案

如果该进程持有该文件的独占锁则没有。如果进程持有共享锁,你可以读取它。

If the process holds an exclusive lock on the file then no. If the process holds a shared lock, you can read it.