Synchronization in Java Programming
Previous | Home | Next |
Synchronization is way by which we insure that only one thread can access resources at a time.
There are two way to achieve synchronization 1. synchronized methods 2. synchronized statements. public synchronized void display(){ } public void display() { synchronized(this); }
Previous | Home | Next |