Class RuntimeKit
java.lang.Object
com.iohao.net.common.kit.RuntimeKit
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintThe number is a power of 2 that is not greater than Runtime.getRuntime().availableProcessors(). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
availableProcessors
public int availableProcessors -
availableProcessors2n
public int availableProcessors2nThe number is a power of 2 that is not greater than Runtime.getRuntime().availableProcessors(). When the value of availableProcessors is 4, 8, 12, 16, or 32, the corresponding number is 4, 8, 8, 16, or 32.
-
-
Constructor Details
-
RuntimeKit
public RuntimeKit()
-