JavaMemoryModel: New function needed in java.lang.Thread?

From: Bill Pugh (
Date: Wed Aug 22 2001 - 12:05:46 EDT

Although this is at the margins of the scope of JSR 133, I'd like to
open it up for discussion.

The isAlive method of java.lang.Thread returns true if the Thread has
started but has not yet terminated.

It seems to be that programs need to have a way of figuring out:

* has a thread started
* has a thread terminated

You can fake a way to see if a thread has terminated by doing a join
with an immediate time-out, but that is rather clumsy.

Should we consider adding a hasStarted or isTerminated method to

JavaMemoryModel mailing list -

This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:34 EDT