开发者

What is use of synchronized keyword? [duplicate]

This question already has answers here: Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜