GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-interview/examset/README.md at master · guosavage/java-interview

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
21 lines (19 loc) · 673 Bytes
/

README.md

Copy path

File metadata and controls

21 lines (19 loc) · 673 Bytes
Raw
Copy raw file
Download raw file
Edit and raw actions

互联网大厂常考编程题

1.ReentrantLock-Condition实现三个线程交替打印1-75

比如结果

 * Thread[pool-1-thread-1,5,main]1
 * Thread[pool-1-thread-2,5,main]2
 * Thread[pool-1-thread-3,5,main]3
 * Thread[pool-1-thread-1,5,main]4
 * Thread[pool-1-thread-2,5,main]5
 * Thread[pool-1-thread-3,5,main]6
 * Thread[pool-1-thread-1,5,main]7
 * Thread[pool-1-thread-2,5,main]8
 * Thread[pool-1-thread-3,5,main]9
 * ...
 * Thread[pool-1-thread-1,5,main]73
 * Thread[pool-1-thread-2,5,main]74
 * Thread[pool-1-thread-3,5,main]75

代码见代码RobinPrintReentrantLock.java

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.