正在加载图片...
runo and start Methods Thread类和 Runnable接口的rumn0方法是 个回调 Callback)方法,当 Thread类实例表 示的线程被执行时,此方法将被JM调用 完成线程的功能 Thread类的sart0方法用于启动一个线程, 使线程进入就绪状态,等待线程调度器的执 Thread th=new MyThread o; th. start0;←启动线程run() and start() Methods • Thread类和Runnable接口的run()方法是一 个回调(Callback)方法,当Thread类实例表 示的线程被执行时,此方法将被JVM调用, 完成线程的功能 • Thread类的start()方法用于启动一个线程, 使线程进入就绪状态,等待线程调度器的执 行Thread th=new MyThread(); th.start(); 启动线程
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有