问题就是必须处理代码重入。
译文: 锁对象 同步代码依赖于一种简单的重入锁。
Synchronized code relies on a simple kind of reentrant lock.
因此,代码的可重入区域通常必须使用局部变量,也仅以此方式,每个对这些代码的调用才会有独属于自己的一份数据副本。
Thus re-entrant section of code usually must use local variables only in such a way that each and every call to the code gets its own unique copy of data .
应用推荐