Difference between wait() and sleep()

There are some difference key notes i conclude after working on wait and sleep, first take a look on sample…

12 years ago

Interrupting Java threads

Interrupting a thread means stopping what it is doing before it has completed its task, effectively aborting its current operation.…

12 years ago

Thread Control in Java

While the suspend( ), resume( ), and stop( ) methods defined by Thread class seem to be a perfectly reasonable…

12 years ago

Inter-thread communication

Inter Thread Communication is one of the distinct facility in multi threading application development of java. Inter thread communication concept…

12 years ago

Deadlock in Java

Deadlock can occur in a situation when a thread is waiting for an object lock, that is acquired by another…

12 years ago

Static synchronization & non static synchronization

A synchronized method or block works on a given monitor. Synchronized non-static methods all synchronize on the Java instance of…

12 years ago

Synchronized block in Java Multithreading

Synchronized block can be used to perform synchronization on any specific resource of the method. Suppose you have 100 lines…

12 years ago