Member-only story
Java Concurrency Summary for interview preparation
Java threads are an essential topic that every Java developer is expected to know. I have summarized important topics related to Java threads in this blog post.
Not a medium member ? Access using this link http://jeetwincasinos.com/javarevisited/java-concurrency-summary-for-interview-preparation-f0e6abb1d013?sk=5ba8b0cab9d05ec687c43961cd9eee25
This should help you in quick revision of Java concurrency before your next interview.
If you like this blog, please follow me on medium and on linkedin
Agenda
- Thread Basics
- Thread states
- Thread Priority
- Runnable and Callable
- Futures and CompletableFutures - Executor framework
- Fork/Join pool
- ThreadPools - Lock mechanisms
- Synchronized
- Locking strategies
— Optimistic lock
— Pessimistic lock
- Reentrant lock
- ReadWriteLock
- Lock fairness - Java Memory Model
- Instruction reordering
- ThreadCache
- ‘volatile’ keyword
- Atomic variables and CAS
- happens-before guarantee - Other important points
- Thread related methods
- java.util.concurrent utilities
- ThreadLocal - Thread issues and debugging
- Thread deadlock
- Thread starvation
- Thread…