task-parallel-library
Multi-Threaded SubQueries using Entity Framework throws errors
I have been trying to update the performance of my code in regards to database queries.The problem I am currently running into is that I cant seem to find a way to get a new context for each subQuery.[详细]
2023-03-07 05:43 分类:问答Update UI Label when using Task.Factory.StartNew
I am trying to make my UI more responsive in my WPF app.I s开发者_运维百科pawn a new thread using[详细]
2023-03-07 03:37 分类:问答Prioritized TPL DataFlow BufferBlock
It should be something very natural to have, I was wondering if there is a ready i开发者_开发知识库mplementation of Prioritized BufferBlock from TPL DataFlow library?Seems the best way to achieve this[详细]
2023-03-06 23:42 分类:问答Parallel.ForEach questions
I am using a Parallel.ForEach loop in C# / VS2010 to do processing and I have a couple of questions. First of all I have a process that needs to extract information from a remote webservice and then[详细]
2023-03-06 09:41 分类:问答How to remove Task from collection after completed
Let\'s say I have a collection of System.Threading.Tasks.Task: HashSet<Task> myTasks = new HashSet<Task>();[详细]
2023-03-06 07:21 分类:问答How can I use Tasks in this context?
private void cmbPlatform_SelectedIndexChanged(object sender, EventArgs e) { string platform = cmbPlatform.Text;[详细]
2023-03-06 04:56 分类:问答How can I pass a state object to a continuation task?
I\'m using the .NET 4.0 Task Parallel Library with C# (my first time using TPL) I have a task A which I want to run to completion before firing off a bunch of other tasks (B,C,D, etc). I th开发者_如何[详细]
2023-03-06 04:54 分类:问答Why PLinq doesn't support more than 63 parallel threads?
I think the question is clear. PLinq doesn\'t allow you to create more than 63 threads (WithDegreeOfParallelism doesn\'t allow it, throws ArgumentOutOfRangeException). In rare situations, we need to a[详细]
2023-03-05 17:28 分类:问答How to create a task (TPL) running a STA thread?
Using Thread is pretty straightforward Thread thread = new Thread(MethodWhichRequiresSTA); thread.SetApartmentState(ApartmentState.STA);[详细]
2023-03-05 01:52 分类:问答How to walk the .NET try/catch chain to decide to generate a minidump
We\'ve hit a snag mixing Tasks with our top-level crash handler and are trying to find a workaround. I\'m hoping someone has some ideas.[详细]
2023-03-04 19:31 分类:问答