How to find the number of threads used by the processor? And the current processor speed (GHz)? Here is a picture - 
How can I get this data out?
I’m not sure what speed of the core the Task Manager shows, and what this code will produce:
int threadsCount = Process.GetProcesses() .Select(p => p.Threads.Count) .Sum(); uint clock; using (var mo = new ManagementObject("Win32_Processor.DeviceID='CPU0'")) { clock = (uint)mo["CurrentClockSpeed"]; } Console.WriteLine(clock); Console.WriteLine(threadsCount); Source: https://ru.stackoverflow.com/questions/891118/
All Articles