Windows 2008 R2-内核(系统进程PID = 4)正在锁定文件和文件夹 [英] Windows 2008 R2 - Kernel (System Process PID=4) is locking files and folders

查看:121
本文介绍了Windows 2008 R2-内核(系统进程PID = 4)正在锁定文件和文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 2008 R2-内核(系统进程PID = 4)长时间锁定了文件和文件夹. 例如,当删除文件时,文件可能会保持锁定1分钟或更长时间,并且只有在删除之后才可以. 在其他情况下,我遇到无法删除的文件或文件夹. ProcMon显示系统进程将这些资源握住了几分钟,然后释放了它们 我提到的资源都不是系统资源,只有安装的文件和文件夹是我自己,并由我的应用程序处理.

Windows 2008 R2 - Kernel (System Process PID=4) is locking files and folders for a long time. For example when deleting a file, the file may remain locked for 1 minute or more and only after that be deleted. On another occasions I encountered files or folders I could not delete. ProcMon showed that the System Process was holding a handle to those resources for a couple of minutes and then released them None of the resources I mentioned were system resources, only files and folders installed be me and handled by my applications.

推荐答案

正如Dani在评论中已经提到的那样:

As Dani has already mentioned in the comment:

这是Windows 7中的一个错误,很可能是Windows Server 2008中的一个错误(可能只有64位版本).当您禁用应用体验" 服务时,它就会浮出水面.

It's a bug in Windows 7 and likely in Windows Server 2008 (possibly 64bit versions only). It surfaces when you disable Application Experience service.

重新启用此服务已为我解决了此问题.

Re-enabling this service has fixed this problem for me.

更多信息 关于它为什么导致问题的信息.

A bit more info here as to why it's causing a problem.

似乎与之相关的其他SO问题列表:

List of other SO questions which seem to be related:

  • Visual Studio output file permissions?
  • Under which circumstances does the System process (PID 4) retain an open file handle?

这篇关于Windows 2008 R2-内核(系统进程PID = 4)正在锁定文件和文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆