githubEdit

Interview Questions

What is the difference between the process and thread?

chevron-rightClick here to view answerhashtag

To be updated

What are the benefits of Multi-Threaded Programming?

chevron-rightClick here to view answerhashtag

To be updated

How can we create a thread in Java?

chevron-rightClick here to view answerhashtag

To be updated

What is context-switching in Multi-Threading?

chevron-rightClick here to view answerhashtag

To be updated

Can main() finishes before starting other threads?

chevron-rightClick here to view answerhashtag

To be updated

What are the different states in the life cycle of a thread?

chevron-rightClick here to view answerhashtag

To be updated

Can we call run() of thread class?

chevron-rightClick here to view answerhashtag

To be updated

What do you understand about thread priority?

chevron-rightClick here to view answerhashtag

To be updated

You have thread T1, T2, and T3, how will you ensure that thread T2 runs after T1 and thread T3 runs after T2?

chevron-rightClick here to view answerhashtag

To be updated

Can you restart a thread?

chevron-rightClick here to view answerhashtag

To be updated

Describe synchronization in respect to multithreading?

chevron-rightClick here to view answerhashtag

To be updated

What are memory consistency errors?

chevron-rightClick here to view answerhashtag

To be updated

What is a deadlock?

chevron-rightClick here to view answerhashtag

To be updated

What is liveness in concurrent programming?

chevron-rightClick here to view answerhashtag

To be updated

What are atomic operations?

chevron-rightClick here to view answerhashtag

To be updated

Explain different ways of using a thread?

chevron-rightClick here to view answerhashtag

To be updated

Why would you use a synchronized block instead of a synchronized method?

chevron-rightClick here to view answerhashtag

To be updated

What is the difference between the methods sleep() and wait()?

chevron-rightClick here to view answerhashtag

To be updated

How would you describe Producer-Consumer problem in Java?

chevron-rightClick here to view answerhashtag

To be updated

What is the difference between Callable and Runnable?

chevron-rightClick here to view answerhashtag

To be updated

Explain what is a thread pool? What are the advantages of thread pools?

chevron-rightClick here to view answerhashtag

To be updated

Last updated