Why is Process.WorkingSet > Process.MaxWorkingSet?

前端 未结 2 1595
無奈伤痛
無奈伤痛 2021-02-10 11:29

Idle curiosity...

I\'m looking at some of the properties of the current process:

using(Process p = Process.GetCurrentProcess())
{
    // Inspect properti         


        
2条回答
  •  死守一世寂寞
    2021-02-10 11:43

    MaxWorkingSet and MinWorkingSet are the values returned by the Win32 API GetProcessWorkingSetSize. These are limits used by the virtual manager that will be enforced when the memory is in short supply. As long as enough memory is available, the current working set size is allowed to grow larger than the value in MaxWorkingSet.

提交回复
热议问题