Java Thread: A Thread That Is Created Whenever A JVM Starts
Java Thread: A Thread That Is Created Whenever A JVM Starts
1.
2.
3.
4.
All the threads are created directly or indirectly from "java.lang.Thread"
class.
5.
6.
b.
8.
A thread, called main thread, is automatically created when JVM calls the
main method, is a user thread. From the main thread, other user threads
can be created.
After the execution of the main thread, if other user threads finishes
already, the program exits. Otherwise, other user threads start execution.
9.
As long as any of the user threads are alive, daemon thread is alive.
10.
11.
12.
13.
notifyAll()