Java 7: Fork/Join Framework

前端 未结 6 696
深忆病人
深忆病人 2021-02-02 01:25

Can someone explain what Fork/Join is?

6条回答
  •  春和景丽
    2021-02-02 02:03

    Say you have a collection of things that need to be processed. You have a number of threads that can grab subsets of this collection and process them. They all do this concurrently (the fork part) then wait on the last one to finish (the join part) before returning.

提交回复
热议问题