ITeye博客

thread

共 1 篇文章

线程池压测

public static void main(String[] args) throws Exception { ExecutorService es = Executors.newFixedThreadPool(300); Callable<Object> cb = new Callable() { @Override public Object call() throws Exception { Connection conn = Neo4jUtil.getConnection(); Statement statement = conn.createStatement(); TimeU…

2017-03-22 10:15 · java · thread