Which of the following are correct statements to create a Lock so the longest-wait thread will obtain the lock first?()
A、Locklock=newLock();;
B、Locklock=newReentrantLock();;
C、Locklock=newReentrantLock(true);;
D、Locklock=newReentrantLock(false);
发布时间:2025-07-08 18:03:17