ITP

MCA - Advanced Java Programming

Define deamon thread ?

In : MCA Subject : Advanced Java Programming

A daemon thread can be any Java thread.
Service providers for other threads running in the same process as the daemon thread are daemon threads.
The interpreter ends when daemon threads are the only ones left in a process.
This makes sense because there are no other threads for which a daemon thread can provide a service when only daemon threads remain.
Call the setDaemon method with the argument true to indicate that a thread is a daemon thread.
Use the accessor method isDaemon to see if a thread is a daemon thread.

About us

A truly open platform where you may ask questions and get answers. We also provide comprehensive and easy-to-understand answers to question papers.  discover...

Site status

Flag Counter

Privacy Policy

Sitemap