+ 2
Synchronization context comes into picture generally when you are running multiple threads in a program.
Only one thread has access to the shared resources till a thread dependent method execution is completed.
"Synchronized" keyword is used in java to achieve the same.