Determine computer processor information.
import java.util.Date;
import matrix_science.msparser.*;
public class config_procs {
static {
try {
System.loadLibrary("msparserj");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. "
+ "Is msparserj.dll on the path?\n" + e);
System.exit(0);
}
}
public static void main(String argv[])
{
ms_processors cpus = new ms_processors(false, 1);
if (!cpus.isValid())
{
System.out.println("There are errors. Cannot continue. The last error description:");
System.out.println(cpus.getLastErrorString());
System.exit(0);
}
System.out.println("Number of CPUS available on the system: " + cpus.getNumOnSystem());
}
}