Why is Process.WorkingSet > Process.MaxWorkingSet?

前端 未结 2 1596
無奈伤痛
無奈伤痛 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:59

    While the MSDN is not really helpful in this case, a small investigation with the Process Explorer on the other hand revealed that the values for Private Memory/MaxWorkingSet and Shared Memory/WorkingSet do nearly exactly match.

    Which makes me believe (yes, I do lack hard evidence) that the MaxWorkingSet does display the private memory while the WorkingSet64 does display the complete memory, including shared one.

    I know what the MSDN says...and I don't care, I see something different in the Process Explorer.

提交回复
热议问题