提交 224b850b 编写于 作者: Z zyyang

change

上级 61a15638
......@@ -27,8 +27,7 @@ public class ConnectionPoolDemo {
private static int poolSize = 50;
private static int threadCount = 50;
private static int sleep = 1000;
private static int sleep = 0;
public static void main(String[] args) {
String host = null;
......@@ -98,7 +97,8 @@ public class ConnectionPoolDemo {
executor.execute(new InsertTask(dataSource, dbName, tableSize, batchSize));
// sleep few seconds
try {
TimeUnit.MILLISECONDS.sleep(sleep);
if (sleep > 0)
TimeUnit.MILLISECONDS.sleep(sleep);
} catch (InterruptedException e) {
e.printStackTrace();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册