GIAC
GSSP-JAVA · Question #86
GSSP-JAVA Question #86: Real Exam Question with Answer & Explanation
The correct answer is A. thread1 attempt to read from a file B. thread1 executes thread2.sleep(3000). See the full explanation below for the reasoning.
Question
There are two threads defined in an application named "thread1" and "thread2". Which of the following options can be the direct cause of "thread1" becoming blocked? Each correct answer represents a complete solution. Choose all that apply.
Options
- Athread1 attempt to read from a file
- Bthread1 executes thread2.sleep(3000)
- Cthread2 executes thread1 sleep(3000)
- Dthread1 raises its own priority
- Ethread1 executes new Thread (someRunnable)
Community Discussion
No community discussion yet for this question.