单项选择题

A.在线程休眠时,sleep方法会占用处理器时间
B.将方法声明为synchronized,就可以确保不会发生死锁
C.不提倡使用Thread类的suspend方法,resume方法和stop方法
D.以上描述都正确