toolThread#join() or join(long)使用 wait-notify 实现生产者-消费者模型Daemon线程Thread#isInterrupted#interrupted#interruptReentrantLock公平锁与非公平锁的问题ReentrantReadWriteLockCopyOnWriteArraylistLinkedHashMapCollections相关APITreeMapCompletableFuture在 main 函数启动一个新线程,运行一个方法,拿到这 个方法的返回值后,退出主线程?