Why does non-fair ReentrantLock perform worse with two threads compared to three or more threads

前端 未结 0 1758
花落未央
花落未央 2020-12-07 22:23

While investigating how the various Java synchronization primitives perform, I noticed that the performance of non-fair RentrantLock & Semaphore with 2 threads, was much

相关标签:
回答
  • 消灭零回复
提交回复
热议问题