Is it a good way to use java.util.concurrent.FutureTask?

后端 未结 6 1084
清歌不尽
清歌不尽 2020-12-22 20:18

First of all, I must say that I am quite new to the API java.util.concurrent, so maybe what I am doing is completely wrong.

What do I want to do?

I have a Ja

6条回答
  •  既然无缘
    2020-12-22 21:01

    You may want to use a CyclicBarrier if you are interested in starting the threads at the same time, or waiting for them to finish and then do some further processing. See the javadoc for more information.

提交回复
热议问题