JDK-4078440 : (thread) Thread class should have getState() method
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.1.3
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_95
  • CPU: x86
  • Submitted: 1997-09-11
  • Updated: 2005-05-13
  • Resolved: 2005-05-13
Related Reports
Relates :  
Description

Name: joT67522			Date: 09/11/97


The Thread.getState() method should allow the
JAVA programmer to determine the state of the
thread. The possible values should be:
(1) sleeping, (2) blocked waiting for I/O,
(3) running, (4) waiting.

If a thread.sleep() has been called and the
thread has not yet been awaken, then the
state should be "sleeping".

If a thread does a wait(Object), then the
state should be "waiting".

If the thread is in a "ready to run" queue,
then state should be set to "running".
company - SQRIBE Technologies , email - ###@###.###
======================================================================

Comments
WORK AROUND Name: joT67522 Date: 09/11/97 ======================================================================
11-06-2004

EVALUATION Currently, the state space is not well enough specified for us to implement this RFE. Hopefully, we will improve the spec in the future, at which time we'll reconsider this request. joshua.bloch@Eng 1998-06-25
25-06-1998