![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
下列哪个方法是用来专门定义临界区,实现线程的同步?A.resume()B.notify()C.start()D.synchronize
下列哪个方法是用来专门定义临界区,实现线程的同步?
A.resume()
B.notify()
C.start()
D.synchronized()
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)
下列哪个方法是用来专门定义临界区,实现线程的同步?
A.resume()
B.notify()
C.start()
D.synchronized()
A、public class MyRunnable extends Runnable { public void run( ) { } }
B、public class MyRunnable extends Runnable { void run( ) { } }
C、public class MyRunnable implements Runnable { public void run( ) { } }
D、public class MyRunnable implements Runnable { void run( ) { } }
A、implements Runnable并重写start()方法
B、extends Runnable并重写run()方法
C、extends Thread并重写run()方法
D、implements Thread并重写start()方法
A.实现java.lang.Runnable接口并重写start()方法
B.实现java.lang.Runnable接口并重写run()方法
C.继承java.lang.Thread类并重写run()方法
D.实现java.lang.Thread类并实现start()方法
A.false false
B.false true
C.tree false
D.true true
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!