用ReentrantLock和condition实现 import java.util.LinkedList; import java.util.List; import java.util.concurrent.locks.Condition; import java.util.concurren