Another reason is because when the JVM manages lock acquisition and release using synchronization, the JVM is able to include locking information when generating thread dumps.
另一个原因是因为,当jvm用synchronized管理锁定请求和释放时,JVM在生成线程转储时能够包括锁定信息。
This change amortizes the cost of the lock acquisition over many packets and reduces lock contention significantly, allowing us to scale memcached to 8 threads on an 8-core system.
这个更正将请求锁的开销平摊到了多个数据包,显著地减少了锁争 用,这样我们就能在8核系统上将memcached伸展至8线程。
Buffer acquisition is managed through the use of latches, known as mutex, and lock-access information.
缓冲区的获取是通过使用锁存器(latch)和锁访问信息来管理的,该锁存器称作 mutex。
应用推荐