What is use of synchronized keyword? [duplicate]
Possible Duplicate:
what synchroni开发者_C百科zed statement used for?
What is use of synchronized keyword?
This means that just one thread can execute that method.
Others threads which call it will wait until another finish the execution. Then the next start executing it.
精彩评论