Displaying Source Code(s)
|
|
How can a daemon thread be implemented? Is there any limitation
on the number of daemon threads in a
--------------------------------------------------------------------------------
After creating an object of a Thread class and before starting
the thread, call the setDeamon () function of the Thread class
with parameter as true. This will mark the thread as a daemon
thread.
No, there is no limitation on the number of daemon threads in an
application.
|
|
|