- Thread Terminology
Thread Terminology
-
Thread/daemon Thread,
- thread is discrete unit of concurrency managed by JVM
- daemon thread: runs independent of other threads, killed when Runtime.exit
-
Different state Threads
- Alive thread - A running thread taht is performance some work
- Blocked thread - attempt to enter synchronized block blocked by another thread
- Waiting Thread - waiting for another thread to call
- Sleep Thread - not executing because sleep is called
-
Monitor
-
Deadlock
- Livelock
- Thread A performs and action that causes thread B to perform an action
- Thread A still alive
- Reference
-
some ref:
近期评论