Hello,
I would like to find the process with the largest memory size, how can i compare between the memory size of a process list?
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jonathas SucupiraPosted Aug 12, 2011, 6:16 PM
VulpesPosted Aug 12, 2011, 4:54 PM
VulpesPosted Aug 12, 2011, 4:02 PM
sPosted Aug 12, 2011, 3:09 PM
VulpesPosted Aug 12, 2011, 2:58 PM
sPosted Aug 12, 2011, 2:38 PM
say i search for the process "System". my function return a message that the process was found.
I would like that after showing that msg the path of this specific process will be shown on a text box
Jonathas SucupiraPosted Aug 12, 2011, 2:29 PM
sPosted Aug 12, 2011, 2:11 PM
I would like to ask another Q:
I have a function that search for processes and pop up a msg if she found the specific process. how can i show the path of the process on textBox?
Thanks.
sPosted Aug 12, 2011, 1:36 PM
Jonathas SucupiraPosted Aug 12, 2011, 1:33 PM
class Program
{
static void Main(string[] args)
{
var processList = Process.GetProcesses()
.OrderByDescending(p => p.WorkingSet64)
.First();
Console.WriteLine("{0} {1}", processList.ProcessName, processList.WorkingSet64);
Console.Read();
}
}
I would like to note that this is not actually comparing, it is just printing the information of the process that is using the most memory at the time.
VulpesPosted Aug 12, 2011, 1:28 PM