Questions tagged [parallel-extensions]

Parallel Extensions is a managed concurrency library included in the .NET 4.0 release.

Parallel Extensions is a managed concurrency library included in the .NET 4.0 release. It is composed of two parts: Parallel LINQ (PLINQ) and Task Parallel Library (TPL).

124 questions
0
votes
2 answers

Invalid attempt to call Read when reader is closed

I have several portions of code in different classes that use this or very similar code to pull back some data from an SQL Server database. Most of them work, but I'm running into a problem on a few and really don't understand why. The code above…
rigamonk
  • 1,179
  • 2
  • 17
  • 45
0
votes
1 answer

PLINQ query, need to know how many iterations performed

what I'm basically doing is iterating in parallel over a sequence of letter combinations, when I get the combo I want it's considered a win. I want to get all the wins from this query (which it's doing correctly), but the trick has been how to keep…
Mark W
  • 3,879
  • 2
  • 37
  • 53
0
votes
1 answer

How to return another value from method in "third party" lib?

Task[] tableOfWebClientTasks = new Task[taskCount]; for (int i = 0; i < taskCount; i++) { tableOfWebClientTasks[i] = new WebClient().DownloadStringTask(allUrls[count - i -…
mike00
  • 438
  • 1
  • 6
  • 17
-2
votes
2 answers

System.Threading.Task library in .net specifically Parallel.ForEach

I looked at microsoft's tutorial on Tasks on MSDN... It was good for what it showed, but I still have questions In there example... found at this URL: MSDN Link They show an example where they show a Parallel.ForEach() static method call. In that…
SoftwareSavant
  • 9,467
  • 27
  • 121
  • 195
1 2 3
8
9