Listing 3 provides a block of code that USES your Counter class.
清单3中的代码块使用了counter类。
2
When a call to the log method is found, we check to see if the program counter is outside the if block determined earlier.
找到对log方法的调用后,我们检查程序计数器是否在前面确定的if块外面。
3
And, if this process is applied repeatedly, the entire loop can be collapsed into a single synchronized block with a single "counter=10000000" operation.