Threads are most important topics for any java interviews. Knowing thread deeper will give you extra impression on the interviewer as threads are relatively untouched & difficult section of java for most of the java developers. I am listing the basic thread related links that i have came across and hopefully this will help you to prepare for your next java interview.
First of all we need to get hold on the basics of the thread concepts in java including creation, race conditions, locks etc. You can refer this article for basics. Before that if you want to learn how OS deals with threads and what are the different types of concurrency available then this article will give you an excellent write up about the back ground. The blog callicoder has listed all the major topics very clearly with examples with Java 8. Please check all the blog series in the left panel. It talks about executor service, callable, synchronization and locks. Atomic variables are thread safe option as well. So we need to understand how atomic variables take of thread safety. You can find the article here.
Java 1.5 has introduced a number of concurrent collections and it is very important to know about these utilities during interviews.
ThreadLocal - In Details
BlockingQueue
Counting Semaphore
This article will help you write your own thread pool from scratch. It's worth reading.
First of all we need to get hold on the basics of the thread concepts in java including creation, race conditions, locks etc. You can refer this article for basics. Before that if you want to learn how OS deals with threads and what are the different types of concurrency available then this article will give you an excellent write up about the back ground. The blog callicoder has listed all the major topics very clearly with examples with Java 8. Please check all the blog series in the left panel. It talks about executor service, callable, synchronization and locks. Atomic variables are thread safe option as well. So we need to understand how atomic variables take of thread safety. You can find the article here.
Java 1.5 has introduced a number of concurrent collections and it is very important to know about these utilities during interviews.
ThreadLocal - In Details
BlockingQueue
Counting Semaphore
This article will help you write your own thread pool from scratch. It's worth reading.
No comments:
Post a Comment