totalRequests = totalRequests + 1
MOV EAX, [totalRequests] // load memory for tot Requests into register
INC EAX // update register
MOV [totalRequests], EAX // store updated value back to memory
在另一个线程中的同一同步器对象上,“释放”同步器方法(如Lock.unlock, Semaphore.release, and CountDownLatch.countDown)之前的操作发生在成功“获取”方法(如Lock.lock, Semaphore.acquire, Condition.await, and CountDownLatch.await)之后的操作之前。