什么是ReentrantLock?它的特点是什么?与synchronized有何不同?

答案解析

ReentrantLock是可重入锁,支持公平/非公平、可中断、条件变量等。比synchronized更灵活,功能更强。