Which of the following are correct statements to create a Lock so the longest-wait thread will obtain the lock first?()

发布于 2021-02-15 03:25:28
【单选题】
A Lock lock = new Lock();
B Lock lock = new ReentrantLock();
C Lock lock = new ReentrantLock(true);
D Lock lock = new ReentrantLock(false);

查看更多

关注者
0
被浏览
51
  • 体验AI问答!更聪明、超智能!
  • 一款基于GPT的超级AI助手,可以对话、创作、写文案!
1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

手机
浏览

扫码手机浏览

分享
好友

在线
客服