Java General
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
Code Formatted by ToGoTutor
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment