(6-4)当多个线程调用同一方法时,为使线程同步,该方法应使用修饰关键字()。
A、protected
B、void
C、synchronized
D、public
查看答案
(6-2)线程通过()方法可以休眠一段时间,然后恢复运行。
A.run
B.setPrority
C.yield
D.sleep
(6-3)()方法是实现Runnable接口所需的。
A.wait()
B.run()
C.stop()
D.update()
(6-2)用()方法可以改变线程的优先级。
A.run
B.setPrority
C.yield
D.sleep
(6-5)处理线程间通信等待和通知的方法是()。
A.wait和notify
B.star和stop
C.run和stop
D.wait和suspend