创建线程
继承THread类
1 | public class Demo1 extends Thread { |
实现Runable接口
1 | public class Demo2 implements Runnable { |
线程初始化

1 | /** |
Thread类的init方法初始化线程
1 | /** |
1 | public class Demo1 extends Thread { |
1 | public class Demo2 implements Runnable { |

1 | /** |
1 | /** |
1 | public enum State { |

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment