[2422] in java-interest
Loosing the user thread.
daemon@ATHENA.MIT.EDU (David Harvey-George)
Sun Oct 1 16:08:35 1995
Date: Sun, 1 Oct 95 13:08:23 GMT
To: java-interest@java.sun.com
From: David Harvey-George <david@threewiz.demon.co.uk>
Release: Java Alpha 3
Platform: Windows NT
My understanding of threads is that all user threads will run to
completion before the interpreter exits. I don't see this happening,
in fact, unless my main thread does an explicit yield the user thread
(and I confirmed this by printing:
System.out.print("is daemon?"
+ Thread.currentThread().isDaemon() + "\n");
Which yields false)
Never gets run.
The user thread waits accepting socket connections, so when it goes to
sleep waiting for some business the main thread gets reawoken and I have
to yield once again to get the user thread running.
Would anyone care to explain to me what is happening,
thanks,
David Harvey-George
Email: david@threewiz.demon.co.uk
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com