什么是“系统空闲进程”,为什么使用那么多的CPU?「建议收藏」

HaveyoueveropenedupTaskManagerandnoticedtheSystemIdleProcessisusing90%ormoreofyourCPU?Contrarytowhatyoumightthink,that’snotabadthing.Here’swhatthatprocessactuallyd…

大家好,又见面了,我是你们的朋友全栈君。

什么是“系统空闲进程”,为什么使用那么多的CPU?「建议收藏」

Have you ever opened up Task Manager and noticed the System Idle Process is using 90% or more of your CPU? Contrary to what you might think, that’s not a bad thing. Here’s what that process actually does.

您是否曾经打开过任务管理器,并注意到系统空闲进程正在使用90%或更多的CPU? 与您可能认为的相反,这不是一件坏事。 这就是该过程的实际作用。

This article is part of our ongoing series explaining various processes found in Task Manager, like Runtime Brokersvchost.exedwm.exectfmon.exerundll32.exeAdobe_Updater.exe, and many others. Don’t know what those services are? Better start reading!

本文是我们正在进行的系列文章的一部分,介绍在任务管理器中找到的各种过程,例如Runtime Brokersvchost.exedwm.exectfmon.exerundll32.exeAdobe_Updater.exe 。 不知道这些服务是什么? 最好开始阅读!

什么是系统空闲过程? (What Is the System Idle Process?)

If you’ve ever poked around in the Task Manager—Windows 10 users have to look under the “Details” tab—you’ll see that the System Idle Process is using most, if not all, of your CPU. But the System Idle Process is just that; an idling process made by the operating system. Without this process constantly keeping your processor occupied with something to do, your system could potentially freeze.

如果您曾经在任务管理器中闲逛过-Windows 10用户必须在“详细信息”选项卡下查看-您会看到系统空闲进程正在使用大部分(如果不是全部)CPU。 但是系统空闲过程就是这样。 操作系统进行的空闲过程。 如果没有该过程不断使您的处理器忙于处理某事,则系统可能会冻结。

In other words, the CPU resources used by the System Idle Process are just the CPU resources that aren’t being used. If programs are using 5% of your CPU, the System Idle Process will be using 95% of your CPU. You can think of it as a simple placeholder. That’s why the Task Manager describes this process as the “percentage of time the processor is idle.” It has a PID (process identifier) of 0.

换句话说,系统空闲进程使用的CPU资源就是未使用的CPU资源。 如果程序使用了5%的CPU,则系统空闲进程将使用95%的CPU。 您可以将其视为简单的占位符。 这就是为什么任务管理器将此过程描述为“处理器空闲时间的百分比”。 PID(进程标识符)为0。

Windows hides the System Idle Process information from the normal Processes tab in Windows 10’s Task Manager to keep things simple, but it’s still shown on the Details tab.

Windows会从Windows 10的任务管理器的常规“进程”选项卡中隐藏“系统空闲进程”信息,以使事情变得简单,但仍在“详细信息”选项卡上显示。

The System Idle Process on the Details tab in Windows 10's Task Manager

Windows为什么需要系统空闲进程? (Why Does Windows Need a System Idle Process?)

Without this process always keeping your processor occupied with something to do, your system could potentially freeze. Windows runs this process as part of the SYSTEM user account, so it’s always active in the background while Windows is running.

没有此过程,总是让您的处理器忙于做事,您的系统可能会死机。 Windows作为SYSTEM用户帐户的一部分运行此过程,因此Windows在运行时始终在后台处于活动状态。

System Idle Processes are native to Windows NT operating systems, dating back to 1993—they also appear in Unix-like operating systems such as Linux but operate a bit differently. A System Idle Process is a normal part of your OS that runs a single thread on each CPU core for a multiprocessor system, while systems that use hyperthreading have one idle thread per logical processor.

系统空闲进程可追溯到1993年,是Windows NT操作系统的本机-它们也出现在类似Unix的操作系统(如Linux)中,但操作方式略有不同。 系统空闲进程是OS的正常部分,在多处理器系统的每个CPU内核上运行一个线程,而使用超线程的系统每个逻辑处理器都有一个空闲线程。

The System Idle Process’ sole purpose is to keep the CPU busy doing something—literally anything—while it waits for the next computation or process fed into it. The reason this all works is that the idle threads use a zero priority, which is lower than ordinary threads have, allowing for them to be pushed out of the queue when the OS has legitimate processes to be run. Then, once the CPU finishes with that job, it’s ready to handle the System Idle Process all over again. Having idle threads always in a Ready state—if they’re not already running—keeps the CPU running and waiting for anything the OS throws at it.

系统空闲进程的唯一目的是使CPU在等待下一个计算或进程进入时忙于做任何事情(实际上是任何事情)。 所有这些工作的原因是,空闲线程使用零优先级,该优先级低于普通线程,因此允许它们在操作系统运行合法进程时被从队列中推出。 然后,一旦CPU完成该工作,就可以再次处理系统空闲进程。 使空闲线程始终处于“就绪”状态(如果尚未运行),会使CPU处于运行状态,并等待操作系统对其进行处理。

为什么要使用这么多的CPU? (Why Is It Using So Much CPU?)

Like mentioned earlier, this process appears to use a lot of CPU, which is something you’ll spot if you open the Task Manager, looking for resource hungry processes. That’s normal because it’s a special task run by the OS scheduler only when your CPU is idle, which—unless you’re doing something that demands a lot of processing power—will look to be quite high.

如前所述,该过程似乎使用大量CPU,如果您打开“任务管理器”以寻找资源匮乏的过程,就会发现这一点。 这是正常的,因为这是仅在CPU空闲时才由OS调度程序运行的特殊任务,除非您正在执行需要大量处理能力的操作,否则它将看起来非常高。

To understand the number next to the process in Task Manager, you have to think the opposite of what you normally understand it to mean. It represents the percent of CPU that’s available, not how much it’s using. If programs are using 5% of the CPU, then the SIP will show to be using 95% of the CPU, or 95% of the CPU is unused, or unwanted by other threads in the system.

要了解任务管理器中流程旁边的数字,您必须考虑与通常理解的含义相反的含义。 它表示可用CPU的百分比,而不是使用的百分比。 如果程序正在使用5%的CPU,则SIP将显示正在使用95%的CPU,或者95%的CPU未使用,或者系统中其他线程不希望使用。

但是我的电脑很慢! (But My Computer Is Slow!)

If your computer is slow and you notice high usage by the System Idle Process—well, that’s not the System Idle Process’s fault. This process’s behavior is perfectly normal and suggests the problem isn’t due to high CPU usage. It may be caused by a lack of memory, slow storage, or something else using up your computer’s resources. As always, it’s a good idea to run a scan with an antivirus program if you’re experiencing problems and you’re not running anything that might be slowing your PC down.

如果您的计算机运行缓慢,并且发现系统空闲进程的使用率很高,那不是系统空闲进程的问题。 此过程的行为完全正常,这表明问题不是由于CPU使用率高。 这可能是由于内存不足,存储速度慢或其他消耗计算机资源的原因引起的。 与往常一样,如果遇到问题并且没有运行任何可能会使PC速度降低的问题,则最好使用防病毒程序运行扫描

If that yields nothing and you’re still experiencing slower than usual performance, try uninstalling unused programsdisabling programs that launch when you start up your computer, reduce system animations, free up disk space, or defrag your HDD.

如果这样做没有效果,并且您仍然比平时的性能慢,请尝试卸载未使用的程序禁用启动计算机时启动的程序减少系统动画,释放磁盘空间或整理硬盘碎片。

Disabling a startup application in Windows 10's Task Manager

The System Idle Process is an integral part of the Windows operating system and, while it may look like it’s hogging upwards of 90%, that’s just showing you available resources and that your CPU isn’t doing anything with at the moment.

系统空闲进程是Windows操作系统不可或缺的一部分,尽管看起来它占据了90%以上的位置,但这只是向您显示可用资源,并且您的CPU目前没有任何处理。

翻译自: https://www.howtogeek.com/411569/what-is-system-idle-process-and-why-is-it-using-so-much-cpu/

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/125261.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • pycharm运用_python界面开发

    pycharm运用_python界面开发PyCharm是由JetBrains团队研发的用于开发python应用程序的IDE,与IDEA一脉相承首先打开PyCharm的下载地址 https://www.jetbrains.com/pycharm/download/  点击download下载专业版:这时会跳到一个感谢界面,不必理睬,耐心等待下载完成就可以了:下载完的安装程序是这样的:双击安装,点击

    2022年8月28日
    4
  • mysql中nvl_浅谈Mysql中类似于nvl()函数的ifnull()函数

    mysql中nvl_浅谈Mysql中类似于nvl()函数的ifnull()函数IFNULL(expr1,expr2)如果expr1不是NULL,IFNULL()返回expr1,否则它返回expr2。IFNULL()返回一个数字或字符串值,取决于它被使用的上下文环境。mysql>selectIFNULL(1,0);->1mysql>selectIFNULL(0,10);->0mysql>selectIFNULL(1/0,10);-…

    2022年7月13日
    19
  • java编译原理

    java编译原理4.Java编译原理1.javac是什么?(1)javac是一种编译器,能够将一种语言规范转换成另一种用语言规范,通常编译器是将便于人们理解的语言规范成机器容易理解的语言规范。(2)javac的任务就是将java源代码语言转换成jvm能够识别的语言,然后jvm将jvm语言再转化成当前机器能够识别的语言(这样使得对开发者屏蔽与机器相关的细节,并且使得语言的执行与平台无关)2.javac编译器的基本结…

    2022年5月9日
    37
  • kong简介_意大利kong

    kong简介_意大利kongKong简介Kong是一款基于OpenResty(Nginx+Lua模块)编写的高可用、易扩展的,由Mashape公司开源的APIGateway项目。Kong是基于NGINX和ApacheCassandra或PostgreSQL构建的,能提供易于使用的RESTfulAPI来操作和配置API管理系统,所以它可以水平扩展多个Kong服务器,通过前置的负载均衡配置把请求均匀地分发到各个Se…

    2022年4月19日
    64
  • MySQL 5.7调优参数详解

    MySQL 5.7调优参数详解

    2021年6月5日
    130
  • linux动态库和静态库的使用_静态库的使用

    linux动态库和静态库的使用_静态库的使用文章目录动静态库的基本原理认识动静态库动静态库各自的特征静态库的打包与使用打包使用动态库的打包与使用打包使用动静态库的基本原理动静态库的本质是可执行程序的“半成品”。我们都知道,一堆源文件和头文件最终变成一个可执行程序需要经历以下四个步骤:预处理:完成头文件展开、去注释、宏替换、条件编译等,最终形成xxx.i文件。编译:完成词法分析、语法分析、语义分析、符号汇总等,检查无误后将代码翻译成汇编指令,最终形成xxx.s文件。汇编:将汇编指令转换成二进制指令,最终形成xxx.o文件。链接

    2022年9月30日
    3

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号