Interview Questions
What is the difference between the process and thread?
What are the benefits of Multi-Threaded Programming?
How can we create a thread in Java?
What is context-switching in Multi-Threading?
Can main()
finishes before starting other threads?
What are the different states in the life cycle of a thread?
Can we call run()
of thread class?
What do you understand about thread priority?
You have thread T1, T2, and T3, how will you ensure that thread T2 runs after T1 and thread T3 runs after T2?
Can you restart a thread?
Describe synchronization in respect to multithreading?
What are memory consistency errors?
What is a deadlock?
What is liveness in concurrent programming?
What are atomic operations?
Explain different ways of using a thread?
Why would you use a synchronized block instead of a synchronized method?
What is the difference between the methods sleep()
and wait()
?
How would you describe Producer-Consumer problem in Java?
What is the difference between Callable and Runnable?
Explain what is a thread pool? What are the advantages of thread pools?
Last updated