Avatar of rutledgj

asked on 

parallel programming question

I want to use the for each parallel method to cycle through a list of objects and perform some work on them.

The list can contain 100 objects but can grow larger so I want the foreach loop to only work on say 5-10 objects at a time, wait for those threads to finish and do the next 5.

Could anyone show me code as to how I would accomplish this?
Regular ExpressionsVisual Basic.NET

Avatar of undefined
Last Comment

8/22/2022 - Mon