QUESTION 17자격증/OCJP_ExamB2018. 7. 9. 20:55
Table of Contents
반응형
QUESTION 17
Given that t1 is a reference to a live thread, which is true?
A. The Thread.sleep() method can take t1 as an argument.
B. The Object.notify() method can take t1 as an argument.
C. The Thread.yield() method can take t1 as an argument.
D. The Thread.setPriority() method can take t1 as an argument.
E. The Object.notify() method arbitrarily chooses which thread to notify.
Solution : E
plus imformation
sleep에는 milsec의 인수만 들어간다 .
살아있는 쓰레드를 notify or yield 할 수 없다.
setpriority에는 1~10 숫자만 들어간다.
notify는 임의의 쓰레드를 깨우므로 답이된다.
반응형
'자격증 > OCJP_ExamB' 카테고리의 다른 글
QUESTION 19 (0) | 2018.07.09 |
---|---|
QUESTION 18 (0) | 2018.07.09 |
QUESTION 16 (0) | 2018.07.09 |
QUESTION 15 (0) | 2018.07.09 |
QUESTION 14 (0) | 2018.07.09 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상