In simple terms we can say only one thread can act on selected resource(method or variable).
Understanding the above sentence is as follows::
For example we are booking any ticket in a particular bu...
Yeswanth
Dec 6th, 2013
If you want to allow only one thread at a time to access block of code or method then we will go for synchronization.