Skip to content

Commit 8ba3329

Browse files
committed
线程简单使用-启动LiftOff线程{@link LiftOff}
1 parent 974f418 commit 8ba3329

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package org.javacore.thread;
2+
3+
/*
4+
* Copyright [2015] [Jeff Lee]
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
/**
20+
* @author Jeff Lee
21+
* @since 2015-11-2 17:06:48
22+
* 线程简单使用-启动LiftOff线程{@link LiftOff}
23+
*/
24+
public class BasicThreads {
25+
public static void main(String[] args) {
26+
// 创建新的线程
27+
Thread t = new Thread(new LiftOff());
28+
// 执行线程
29+
t.start();
30+
System.out.println("Waiting for LiftOff");
31+
}
32+
}

0 commit comments

Comments
 (0)