Thread Pool vs Thread Spawning

前端 未结 12 1644
梦如初夏
梦如初夏 2020-12-08 00:27

Can someone list some comparison points between Thread Spawning vs Thread Pooling, which one is better? Please consider the .NET framework as a reference implementation tha

12条回答
  •  轮回少年
    2020-12-08 01:25

    For Multi threaded execution combined with getting return values from the execution, or an easy way to detect that a threadpool has completed, java Callables could be used.

    See https://blogs.oracle.com/CoreJavaTechTips/entry/get_netbeans_6 for more info.

提交回复
热议问题