search

Home  >  Q&A  >  body text

多线程 - Java: Semaphore(1)和lock有啥区别,哪个性能更好?

Java: Semaphore(1)和lock有啥区别,哪个性能更好?

PHP中文网PHP中文网2836 days ago517

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-18 10:55:39

    Performance:Lock>synchronized>Semaphore

    reply
    0
  • Cancelreply