Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个有两个线程的线程池。我想确保第一个线程首先执行,在第一个线程完成后,第二个线程开始。除此之外,我需要将 Future 结果从第一个线程传递到第二个线程。
知道怎么做吗?
请帮忙。
谢谢。
这种情况不适合使用线程。因此,避免使用线程。