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 at master · lypJackson/java-interview

Expand file tree

/

examset

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

examset

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src/main/java/com/lsm/roundrobinprint
src/main/java/com/lsm/roundrobinprint
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

互联网大厂常考编程题

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.