JDK-1212384 : (fp.bugs: 1276) Can't kill thread that has been blocked by read()
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.4
  • CPU: sparc
  • Submitted: 1995-06-28
  • Updated: 2022-10-06
  • Resolved: 1995-07-24
Related Reports
Duplicate :  
Description
fp.bugs 1276 - ###@###.### (Jon Payne)

Once a thread is blocked in read() it is not possible to kill that thread, or unblock it.

Description:
I have a piece of applet code which tries to stop another
thread which is blocked reading from a network connection.
It tries to unblock it by closing the network connection,
hoping that the read will return eof immediately.  Instead
it sits there forever blocked, the thread in PendingDeath
state.