2 qq 30276065 qq_30276065 于 2017.08.30 18:45 提问

这是一个关于java线程方面的面试题

Which two CANNOT directly cause a thread to stop executing? (Choose Two)

A. Existing from a synchronized block.

B. Calling the wait method on an object.

C. Calling notify method on an object.

D. Calling read method on an InputStream object.

E. Calling the SetPriority method on a Thread object.

解答:AC

里面的abc可以理解,但是de是怎么会是

1个回答

oyljerry
oyljerry   Ds   Rxr 2017.08.30 22:05

de是阻塞动作。从这方面考虑

qq_30276065
qq_30276065 d和e是阻塞,那么没有答案中没有E,但是有D?
2 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片