plinq
Thread.Sleep blocking parallel execution of tasks
I\'m calling a worker method that calls to the database that then iterates and yield returns values for parallel processing. To prevent it from hammering the database, I have a Thread.Sleep in there t[详细]
2023-04-08 19:14 分类:问答Making PLINQ and BlockingCollection work together
I have put together a simple application that monitors file creation events, creates some objects from the files content, and does some processing. Here is the sample code:[详细]
2023-04-06 20:47 分类:问答Best way to utilize Parallel / PLINQ in finding keywords in all Excel Worksheet Cells
As title, I have a List<string> keywords; and also a Workbook object model that similar to Excel.[详细]
2023-04-06 02:37 分类:问答Equivalent of do() while{} in Parallel
How can I create the parallel equivalent of a do-while or similar in the Update() method below? Another thread in the app writes to TestBuffer at random. TestBuffer.RemoveItemAndDoSomethingWithIt();[详细]
2023-04-04 06:53 分类:问答Task.Wait in ContinueWhenAll Action
I was working on encorperating threads into my azure code for putting things on a queue. to do this i used http://www.microsoft.com/download/en/details.aspx?id=19222 as a reference.[详细]
2023-03-27 04:00 分类:问答When to dispose CancellationTokenSource?
The class CancellationTokenSource is disposable. A quick look in Reflector proves usage of KernelEvent, a (very likely) unmanaged resource.[详细]
2023-03-26 09:43 分类:问答How to Cancel a PLINQ Query in a WinForms Application
I am working on application which processes large amount of text data gathering statistics on word occurrences (see: Source Code Word Cloud).[详细]
2023-03-25 21:22 分类:问答PLINQ: how to run a ParallelQuery on more than 4 threads?
Update - changed the title of the question to reflect what I\'m really after Consider the following piece of code:[详细]
2023-03-23 11:26 分类:问答a specific plinq query
i want to select one id that have max value in a C# dictionary<int, double> for example initial dictionary[详细]
2023-03-20 12:14 分类:问答C#: Chained Linq methods and casting
I have a little game, where I implemented some collision detection. Now I want to get a list of all items of a specific type, which are colliding with the current \"Entity\" object. I want to do somet[详细]
2023-03-19 04:28 分类:问答