Java Question!
Posted: Fri Oct 09, 2009 12:25 pm
I do not know if this is the right forum for Java Questions. If not I apologise.
In TvT Event we have this code:
Is it possible to explain to me what exactly is the job of "synchonized"? I search the internet and other pages and I read something about locks, synchronization methods, synchronization statements e.t.c but still I do not get it. Anyone please explain me this in "English" not "Programming English".
Thanks.
In TvT Event we have this code:
Code: Select all
synchronized (_participatedPlayers) { _participatedPlayers.put(playerInstance.getObjectId(), playerInstance); }
Thanks.