User thread vs. Daemon thread
- When we create a Thread in java program, it’s known as User thread.
- A Daemon thread runs in background and doesn’t prevent JVM from terminating.
When there are no user threads running, JVM shutdown the program and quits.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.