Determine computer processor information.
using System;
using matrix_science.msparser;
namespace MsParserExamples
{
public class config_procs
{
public static void Main(string[] argv)
{
ms_processors cpus = new ms_processors(false, 1);
if (!cpus.isValid())
{
Console.WriteLine("There are errors. Cannot continue. The last error description:");
Console.WriteLine(cpus.getLastErrorString());
return;
}
Console.WriteLine("Number of CPUs available on the system: {0}", cpus.getNumOnSystem());
}
}
}