Discussion
Consider interrupting a thread blocked in stream I/O. Which statement is correct?
Answer: B
Only the documented blocking calls, wait, join and sleep, respond to an interrupt by throwing. A thread parked inside a plain stream read simply has its interrupt status set and stays blocked until data arrives or the stream is closed. Closing it from another thread is the usual way to break out.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development