Avoid synchronization in loops because there is an extra over head to lock and unlock each time the loop occurs.

  • 避免在循环内进行同步。因为循环的每次都有额外开销用在堆的开锁和解锁。
目录 查词历史