private static int getNumThreads() {
        return Math.max(2, Runtime.getRuntime().availableProcessors()/2);
    }
An RPC implementation of the Network interface.

@author havardpe
messagebus/src/main/java/com/yahoo/messagebus/network/rpc/RPCNetwork.java