Posts

Showing posts from November 11, 2010

daemon thread

What is a daemon thread

           Daemon threads are sometimes called "service" threads. These are threads that normally run at a low priority and provide a basic service to a program or programs when activity on a machine is reduced.
          An example of a daemon thread that is continuously running is the garbage collector thread. This thread is provided by the JVM.

difference between yield and sleeping

What is the difference between yield and sleeping

When a task invokes yield(), it changes from running state to runnable state. When a task invokes sleep(), it
changes from running state to waiting/sleeping state.

Recent Post

Recent Posts Widget