|
@@ -77,7 +77,7 @@ public class SysThreadPool { |
|
|
public static void main(String[] args) { |
|
|
public static void main(String[] args) { |
|
|
for (int i = 1; i < 100; i++) { |
|
|
for (int i = 1; i < 100; i++) { |
|
|
int j = i; |
|
|
int j = i; |
|
|
SysThreadPool.getInstance().addTask(new SysThreadWorker(null, null) { |
|
|
|
|
|
|
|
|
SysThreadPool.getInstance().addTask(new SysThreadWorker() { |
|
|
@Override |
|
|
@Override |
|
|
public void localWork() throws Exception { |
|
|
public void localWork() throws Exception { |
|
|
Thread.sleep(1000); |
|
|
Thread.sleep(1000); |
|
|