多线程创建

创建多线程的方式一:继承Thread类

 

创建多线程的方式二:实现Runnable接口

 

创建多线程的方式三:实现Callable接口

 

 

posted @ 2022-10-06 12:23  碎碎啊  阅读(30)  评论(0)    收藏  举报