美文网首页
new thread

new thread

作者: 薛云龙 | 来源:发表于2016-12-20 18:55 被阅读5次

新开一个线程:

new Thread{
@override
public void run(){
sout("我是一个新线程");
}
}.start();
new Thread(
new DoWordTask()
).start();

public class DoWordTask implements Runnable {
sout("我是一个新线程");
}
new Thread(() -> {
            new AiXueDaiPageProcessor(PlatformCodeEnum.REG.AIXUEDAI).main(new String[]{});
        }).start();

相关文章

网友评论

      本文标题:new thread

      本文链接:https://www.haomeiwen.com/subject/qwrfvttx.html