Possible Duplicate:
What is private bytes, virtual bytes, working set?
I'm reading a project and programmer write this code to check program memory
if ((Process.GetCurrentProcess().WorkingSet64 + Process.GetCurrentProcess().PagedMemorySize64) > (long)2048* (long)1024 * (long)1024)
{
Program.Log("memory is over 2G! ----- !closed!" );
Restart();
}
i want to know why programmer add PagedMemorySize64 and WorkingSet64 to calculate current memory size ?
is WorkingSet64 is not enough ?
is it true ?