How to avoid deadlocks in multithreading programes ?
Avoid using Threads
implement only Runnable
Use synchronize blocks
Use synchronize methods
None
Synchornize blocks and Methods