windows - 如何解读 Windows 任务管理器?

标签 windows taskmanager

我运行的是 Windows 7 RC1,它使用与 Vista 相同的 WTM。当我查看流程时,有些专栏我不确定有什么区别:

  • 内存 - 工作集
  • 内存 - 私有(private)工作集
  • 内存 - 提交大小

谁能告诉我它们是什么?

最佳答案

来自以下article ,在 内存使用类型 部分下:

There are two main types of memory usage: working set and private working set. The private working set is the amount of memory used by a process that cannot be shared among other processes, while working set includes the memory shared by other processes.

That may sound confusing, so let’s try to simplify it a bit. Lets pretend that there are two kids who are coloring, and both of the kids have 5 of their own crayons. They decide to share some of their crayons so that they have more colors to choose from. When each child is asked how many crayons they used, both of them said they used 7 crayons, because they each shared 2 of their crayons.

The point of that metaphor is that one might assume that there were a total of 14 crayons if they didn’t know that the two kids were sharing, but in reality there were only 10 crayons available. Here is the rundown:

  • Working Set: This includes all of the shared crayons, so the total would be 14.
  • Private Working Set: This includes only the crayons that each child owns, and doesn’t reflect how many were actually used in each picture. The total is therefore 10.

This is a really good comparison to how memory is measured. Many applications reuse code that you already have on your system, because in the end it helps reduce the overall memory consumption. If you are viewing the working set memory usage you might get confused because all of your running processes might actually add up to more than the amount of RAM you have installed, which is the same problem we had with the crayon metaphor above. Naturally the working set will always be larger than the private working set.

关于windows - 如何解读 Windows 任务管理器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1170654/

相关文章:

windows - 如何将消息从 Electron 发送到另一个进程(其他 native Windows 应用程序)

windows - 将批处理文件编译成exe

c# - 简单的 C# WinForm 应用程序在 Visual Studio 中显示有 3 个线程。任务管理器显示 14-16 个线程。为什么?

batch-file - 批处理或 PowerShell 命令获取 Windows 中所有打开的应用程序的名称

android - 从最近的应用程序列表/任务管理器中排除广播接收器

powershell - 使用Powershell Windows 2008导出特定进程

c++ - 创建进程处理

windows - 没有管理员权限运行jar文件

windows - 如何允许远程访问 PostgreSQL 数据库

C# - 在任务管理器中将应用程序作为第二个进程打开