Implementing Runnable gives us the idea that a thread is going to be created but its not. I believe that start() is never called. Only run() is called, so a new thread is not started.
To be or not to be. It's a question.
What do you mean by UI thread?
Originally posted by Kaydell Leavitt:
I think that I misunderstood when I thought that a "user-thread" was a "user-interface" thread. There is only one user-interface thread, the event-dispatch thread, right?
So I don't know what a "user thread" is. Is the main() thread a user thread? Threads are user-threads by default, right?
.....
Kaydell
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Originally posted by Nicholas Jordan:
If you have a thread that say, writes to the screen or draws a picture, then is is commonly called a user-thread. Say one has another thread that does a long, involved computation ... but does not write to the screen: that thread would normally be called a daemon thread, but it is no different in it's implementation by the machine.
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
So I don't know what a "user thread" is. Is the main() thread a user thread? Threads are user-threads by default, right?
The Zen of Java Programming.
Any thread may be marked as a daemon thread. When code running in some thread creates a new Thread object, that new thread is initially marked as a daemon thread if and only if the creating thread is a daemon thread. A program can change whether or not a particular thread is a daemon thread by calling the setDaemon method in class Thread. The Java virtual machine initially starts up with a single nondaemon thread, which typically calls the method main of some class. The virtual machine may also create other daemon threads for internal purposes. The Java virtual machine exits when all nondaemon threads have terminated [url=http://java.sun.com/docs/books/jvms/second_edition/html/Concepts.doc.html#19152](�2.17.9)[url].
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Did you miss me? Did you miss this tiny ad?
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
|