Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
有一个两层for循环的代码,我想把代码内部的内容写成一个从核函数,但是两层循环的次数均为止,所以准备用动态线程,就是循环体写成从核函数,然后保留主核代码的两层循环,循环内部检测空闲状态的从核,然后将函数加载到空闲的核心上运行,或者抢占任务,但是循环控制变量也是从核函数运行的参数,请问这样的想法应该如何实现呢?