2016-05-05 43 views

回答

0

選擇器/接受器根據以下公式計算。

int selectorCount=selectors>0?selectors:Math.max(1,Math.min(4,Runtime.getRuntime().availableProcessors()/2)) 
int selectorCount=acceptors=Math.max(1, Math.min(4,cores/8));