(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
(6-2)()方法可以用来暂时停止当前线程的运行。
A.stop()
B.sleep()
C.wait()
D.suspend()
(6-2)在一个线程中Sleep(500)方法,将使得该线程在多少时间后获得对CPU的控制(假设睡眠过程中不会有其他事件唤醒该线程)?
A. ==500毫秒。
B. ≥500毫秒。
C. <500毫秒。
D. 不能确定。