java中synchronize关键字的理解(国外英语资料).docVIP

  • 10
  • 0
  • 约1.05万字
  • 约 24页
  • 2017-06-24 发布于河南
  • 举报

java中synchronize关键字的理解(国外英语资料).doc

java中synchronize关键字的理解(国外英语资料)

java中synchronize关键字的理解 The understanding of synchronize keyword in Java application in multi thread environment Synchronized keyword, which includes two uses: the synchronized method and the synchronized block. 1. synchronized method: declare the synchronized method by adding the synchronized keyword in the method declaration. Such as: Public, synchronized, void, accessVal (int, newVal); Synchronized control method of variable access class members: each class instance corresponds to a lock, the lock side of each synchronized method must be called the method of class instances can be executed,

文档评论(0)

1亿VIP精品文档

相关文档