Methods Summary |
---|
public static int | getConcurrency()
try {
System.loadLibrary("CPUSupportWin");
loaded = true;
} catch (Error e) {
try {
System.loadLibrary("CPUSupportSolaris");
loaded = true;
} catch (Error err) {
System.err.println("Warning: No platform library for CPUSupport");
}
}
if (!loaded)
// Assume green threads
return 1;
return getConcurrencyN();
|
private static native int | getConcurrencyN()
|
public static int | getNumProcessors()
if (!loaded)
// Assume green threads
return 1;
return getNumProcessorsN();
|
private static native int | getNumProcessorsN()
|
public static void | setConcurrency(int n)
if (loaded)
setConcurrencyN(n);
|
private static native void | setConcurrencyN(int i)
|