forked from Jossc/JavaCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathThreadTest.java
More file actions
26 lines (20 loc) · 520 Bytes
/
ThreadTest.java
File metadata and controls
26 lines (20 loc) · 520 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.sun;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* @ClassName ThreadTest
* @Description TODO
* @Author chenzhuo
* @Date 2018/9/14 17:32
* @Version 1.0
**/
public class ThreadTest implements Runnable {
public static void main(String[] args) {
ExecutorService executorService = Executors.newFixedThreadPool(8);
executorService.submit(new ThreadTest());
}
@Override
public void run() {
ThreadRun.testSy();
}
}