Thread States

Thread States
New   This is the state the thread is in after the Thread instance has been created, but the start() method has not been invoked on the thread. It is a live Thread object, but not yet a thread of execution. At this point, the thread is considered not alive.     Runnable  This is ...

Processes and Threads

Processes A processes is the “heaviest” unit of  kernel scheduling. Processes own resources allocated by the operating system. Resources include a. memory b. file handler c. sockets d. device handler e. windows Processes do not share address space or file resources except through explicit methods such as inheriting file handles or shared memory segments or ...

Daemon Threads

A daemon thread is a thread, that does not prevent the JVM from exiting when the program finishes but the thread is still running. An example for a daemon thread is the garbage collection.     Daemon threads are like a service providers for other threads or objects running in the same process as the ...