we can use setDaemon(boolean on) method to make any user method a daemon thread.we can use isDaemon() method to check whether thread is daemon thread or not.JVM can exit when only daemon threads exist in system.User created threads are non daemon threads.Priority of daemon threads is always 1 (i.e.These threads are created before user threads are created and die after all other user threads dies.Daemon threads are service oriented threads, they serves all other threads. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |