Browse Source

线程池

4.0
yaoq 2 years ago
parent
commit
91513c8676
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      smtweb-framework/core/src/main/java/cc/smtweb/framework/core/systask/SysThreadPool.java

+ 1
- 1
smtweb-framework/core/src/main/java/cc/smtweb/framework/core/systask/SysThreadPool.java View File

@@ -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);


Loading…
Cancel
Save