哦,有的。他还是小狗时喜欢啃我父亲的鞋,不过现在好了。
Oh yes, he is. When he was a puppy, he liked to chew my father's shoes, but he's okay now.
不过现在好了一点,在最近的 JVM 中,没有争用的同步(一个线程拥有锁的时候,没有其他线程企图获得锁)的性能成本还是很低的。
Even better, in recent JVMs, the performance cost of uncontended synchronization (when no thread attempts to acquire a lock when another thread already holds it) is quite modest.
他们吵过架,不过现在又和好了。
应用推荐