On Jan 12, 2007, at 5:02 AM, Salikh Zakirov wrote:
2007/1/11, Gregory Shimansky <[EMAIL PROTECTED]>:
Another reason for hanging threads is that they wait in
Thread.start().
When a new thread is started, it has to notify a lock object, in
order
to signal the parent thread that it has been created. This
notification
is sent from java code of the Thread before user code is executed.
Alexey Varlamov replied:
IMO the problem is in this design rather than its impl. The
specification for j.l.Thread.start() does not require that execution
of run() begins strictly before the start() returned.
This requirement is implicated by specification of Thread.isAlive():
Tests if this thread is alive. A thread is alive
if it has been started and has not yet died.
I wonder how long it took the EG to come up with that...
geir