Thursday, June 27, 2013

How Does Synchronized Work With Thread


There are 2 threads:
With Synchronized:

   Thread A and Thread B are doing one job at the same time. With synchronized Thread A does first until it is released.
Without Synchronized:   

   Thread A and Thread B are doing one job. It causes racing condition

No comments:

Post a Comment