task-parallel-library
How do i write a Method in C#, that returns once a condition is true?
I have a method where i 开发者_如何学JAVAwant to return Task and the task finish once some internal condition is true.[详细]
2023-03-16 03:19 分类:问答Subject<T> stops publishing items
I have a Subject<T> that I\'m publishing items into via OnNext and after a while, under load, I get this exception:[详细]
2023-03-15 05:53 分类:问答Why do we need ContinueWith method?
Why do we need Task.ContinueWith() method. Cannot we just write that \"continuation code\" inside Task 开发者_如何学运维body?Sasha Goldshtein\'s answer is correct. There are instances where your \'con[详细]
2023-03-14 23:08 分类:问答Task Parallel Library - building a tree
I\'m having trouble with this. I\'ve got \"WorkItem\" which has a method DoWork. WorkItem can have dependencies which MUST complete before it does, otherwise it throws an exception.[详细]
2023-03-14 05:01 分类:问答Synchronizing with an object while using the Task Parallel Library
I have a WPF app that from time to time needs to perform a long-running operation - or rather, many small operations that in sum total take a while. I have found that the Task Parallel Library in .Net[详细]
2023-03-13 02:16 分类:问答Parallel process a intensive IO function
I have this sample code. List<Dictionary<string,string>> objects = new List<Dictionary<string,string>>();[详细]
2023-03-12 20:59 分类:问答Is hyperthreading working?
I\'m running some fairly processor-intensive stuf开发者_开发技巧f on my PC, and notice my CPU usage looks pretty odd. My PC is a quad-core i7-870, which supposedly has eight virtual cores.[详细]
2023-03-12 11:17 分类:问答TPL architectural question
I\'m currently working on a project, where we have the challenge to process items in parallel. So far not a big deal ;)[详细]
2023-03-12 05:25 分类:问答Task Cancellation with multiple sources
I currently have an application where I create a series of Tasks that execute one after the other, with a cancellation source that can interrupt execution between Tasks (i.e. at safe termination point[详细]
2023-03-11 06:06 分类:问答Crash course in simple threading?
I am testing out the idea of threads, but only in very key spots right now.Threads add a pretty fascinating level of complexity to just about anything, but with .NET, it seems there are many choices f[详细]
2023-03-10 19:23 分类:问答