-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* @由于个人水平有限, 难免有些错误, 还请指点: | ||
* @Author: cpu_code | ||
* @Date: 2020-09-15 18:34:01 | ||
* @LastEditTime: 2020-09-15 18:36:00 | ||
* @FilePath: \java\Lambda\lambda3.java | ||
* @Gitee: [https://gitee.com/cpu_code](https://gitee.com/cpu_code) | ||
* @Github: [https://github.com/CPU-Code](https://github.com/CPU-Code) | ||
* @CSDN: [https://blog.csdn.net/qq_44226094](https://blog.csdn.net/qq_44226094) | ||
* @Gitbook: [https://923992029.gitbook.io/cpucode/](https://923992029.gitbook.io/cpucode/) | ||
*/ | ||
package Lambda; | ||
|
||
public class lambda3 { | ||
public static void main(String[] args){ | ||
Runnable task = new RunnableImpl(); | ||
new Thread(task).start(); | ||
} | ||
} | ||
|
||
class RunnableImpl implements Runnable{ | ||
@Override | ||
public void run() { | ||
System.out.println("多线程任务执行"); | ||
} | ||
} | ||
|
||
/* | ||
多线程任务执行 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters