When you need that some threads run in the background of the program then make it deamon thread. It has the lowest priority. You can set any thread as daemon thread for that purpose by using the setDaemon() method.
The garbage collector thread is known as the deamon thread having lowest priority.
The best training program in the world is absolutely worthless without the will to execute it properly, consistently, and with intensity. See the link below for more info.
ReplyDelete#worthless
www.matreyastudios.com