I have a list with thousands of objects, on which an operation that can take between 1 and 3 minutes is performed. I am of course using PLINQ, but I have noticed that when approaching the end of the input list, only one core is working, like if the partitioning had been determined ex ante.
So, with a IList, what is the best way to force PLINQ to keep using worker threads as long as there are items to be processed? The computer has plenty of hardware cores available.
References: