Monthly Archive: April 2013

Daemon Thread

In Java, any thread can be a Daemon thread. Daemon threads are like a service providers for other threads or objects running in the same process as the daemon thread. Daemon threads are used for …

Priority of a Thread

In Java, thread scheduler can use the thread priorities in the form of integer value to each of its thread to determine the execution schedule of threads. Thread gets the ready-to-run state according to their …

Creating a thread in Java

In Java, an object of the Thread class can represent a thread. Thread can be implemented through any one of two ways: Extending the java.lang.Thread Class Implementing the java.lang.Runnable Interface Extending the java.lang.Thread Class For …