gpt4 book ai didi

windows - 为什么大多数进程都将 explorer.exe 作为其父进程

转载 作者:行者123 更新时间:2023-12-02 20:21:55 33 4
gpt4 key购买 nike

我多次列出了正在运行的进程,发现其中大多数都是explorer.exe的子进程,并且explorer.exe的父进程似乎没有运行为什么会这样?

最佳答案

用户登录后,explorer进程由userinit进程创建。 Userinit 执行一些用户环境的初始化(例如运行登录脚本和应用组策略),然后在注册表中查找 Shell 值并创建一个进程来运行系统定义的 shell – 默认情况下为 Explorer.exe。然后 Userinit 退出。这就是为什么 Explorer.exe 在各种没有父进程的进程浏览器中显示 - 它的父进程已退出。 -- 引用自维基 File_Explorer

windows boot progress

从图中可以看出,explorer.exe是由userinit.exe启动的,而userinit.exe最后退出,所以explorer.exe没有父进程。

因为 Windows 使用 explorer.exe 来启动启动进程,所以所有正常进程都是 explorer.exe 的子进程,除非子进程因父进程退出而变得无父进程(孤立)。

因为所有新程序都是由在用户桌面上运行的用户启动的,所以它们都是资源管理器的子程序。

process tree

enter image description here

关于windows - 为什么大多数进程都将 explorer.exe 作为其父进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51176823/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com