Dividing loop iterations among threads

后端 未结 8 551
广开言路
广开言路 2021-01-05 03:41

I recently wrote a small number-crunching program that basically loops over an N-dimensional grid and performs some calculation at each point.

for (int i1 =          


        
8条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-05 04:37

    If you ever do it in .NET, use the Parallel Extensions.

提交回复
热议问题