What is Starvation? and What is a Livelock?

Read →

How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply? What is the difference between synchronized method and synchronized block?

Read →

Briefly explain high-level thread states?

Read →

How you will create a Thread ? By extending Thread class or implementing the Runnable Interface ?

Read →

How should an InterruptedException be handled ?

Read →

How can a thread query if it has been interrupted ?

Read →

How can a thread be woken up that has been put to sleep before using Thread.sleep()?

Read →

Can we use Thread.sleep() for real-time processing ?

Read →

How can we prevent busy waiting?

Read →

What do we understand by busy waiting ?

Read →