No announcements
Found 1180424 threads
-
1 Votes
Parallel.Foreach
List<string> userNames = new List<string>(); Foreach(string s in ...Answered | 3 Replies | 7320 Views | Created by Prasanna119 - Wednesday, January 11, 2012 6:57 PM | Last reply by Nick Bray - Thursday, January 12, 2012 5:44 AM -
1 Votes
Can Parallel.ForEach set the max run time?
emil_tr, the OperationCanceledException is being thrown by the Parallel.ForEach because it's getting canceled just as you wanted it to.Answered | 6 Replies | 19648 Views | Created by Wilson Wu - Wednesday, February 3, 2010 3:07 AM | Last reply by emil_tr - Friday, December 3, 2010 10:45 PM -
0 Votes
Can Parallel.ForEach() nests to another Parallel.ForEach?
The problem with parallel is that you're eventually going to run out of available threads and you're going to block.Answered | 2 Replies | 363 Views | Created by Ping.L - Friday, August 31, 2018 8:05 AM | Last reply by Ping.L - Monday, September 3, 2018 9:20 AM -
1 Votes
Parallel.ForEach Unable to control ApartmentState
I should have clarified in my previous reply, but Parallel.For/ForEach/Invoke use the current thread to run work along with threads from the underlying TaskScheduler if any are ...Answered | 3 Replies | 9244 Views | Created by ozkary - Tuesday, August 10, 2010 8:31 PM | Last reply by Stephen Toub - MSFT - Wednesday, August 11, 2010 4:40 PM -
0 Votes
Parallel.Foreach in C#
Jeff Ferguson has a blog entry about it here http://blog.magenic.com/blogs/jefff/archive/2008/03/18/Parallel.ForEach-Sample_3A00_-Fibonacci-Numbers.aspx Ron Whittle - If the post is ...Answered | 2 Replies | 11240 Views | Created by algates - Tuesday, June 9, 2009 10:32 AM | Last reply by Bin-ze Zhao - Friday, June 12, 2009 8:09 AM -
2 Votes
Parallel.ForEach with DataTable Rows Collection
The Parallel.ForEach is now running.Answered | 12 Replies | 38842 Views | Created by JMWilton - Monday, February 22, 2010 7:53 PM | Last reply by Terry Bittner - Friday, November 13, 2015 5:57 AM -
0 Votes
Parallel.Foreach and yield return
Matthieu, are you looking to consume an iterator with a Parallel.ForEach, or implement an iterator with a Parallel.ForEach?Answered | 2 Replies | 12504 Views | Created by MatthieuMEZIL - Friday, September 4, 2009 7:15 PM | Last reply by Stephen Toub - MSFT - Monday, September 7, 2009 7:30 PM -
2 Votes
Is parallel.foreach using code best way
on the first run can have many reasons sir, which solely depends on your code what are you doing inside the loop.Answered | 2 Replies | 4866 Views | Created by sashidhar.ssd - Sunday, January 8, 2012 5:31 AM | Last reply by REHAN BHARUCHA - Monday, January 9, 2012 6:22 AM -
0 Votes
Convert ForEach to Parallel.ForEach for GridViewRow
Hi any body can help me in converting the below in Parallel.ForEach using C# foreach (GridViewRow row in ...Answered | 4 Replies | 11286 Views | Created by gsgill76 - Saturday, March 19, 2011 8:16 PM | Last reply by Reed Copsey, Jr - Tuesday, March 22, 2011 3:32 PM -
0 Votes
how to use parallel.foreach
Hello everybody, I would like to use Parallel.ForEach for adding records to DataTable, I am not bother with the order of records added.Answered | 5 Replies | 7231 Views | Created by Sunil Terkar - Sunday, May 1, 2011 10:50 AM | Last reply by Stephen Toub - MSFT - Tuesday, July 5, 2011 7:40 PM -
0 Votes
Parallel.ForEach SharePoint List Items
I can't figure out why my Parallel.ForEach is not working.Answered | 1 Replies | 1358 Views | Created by KimFromPA - Monday, June 26, 2017 3:30 PM | Last reply by Jerry Zy - Thursday, July 6, 2017 3:08 PM -
0 Votes
How Parallel.ForEach works internally
Hi, Parallel.Foreach() works with multiple threads and is a part of the Task Parallel Library (TPL).Answered | 1 Replies | 5591 Views | Created by Mou_kolkata - Sunday, November 16, 2014 6:17 PM | Last reply by Manuel Meyer - Sunday, November 16, 2014 7:33 PM -
0 Votes
Break out of Parallel.Foreach in June CTP
If it helps from a clarity perspective, you could expand it to the full delegate syntax: Parallel.ForEach(data, delegate(int i, ParallelState ...Answered | 5 Replies | 7864 Views | Created by Thomas _LA_ - Thursday, September 24, 2009 8:27 PM | Last reply by Stephen Toub - MSFT - Saturday, September 26, 2009 12:33 AM -
1 Votes
How to use Parallel.Foreach for my scenario
if i use normal foreach instead of parallel.foreach then no problem occur but problem start when i use parallel.foreach. looking for your suggestion that how ...Answered | 9 Replies | 1256 Views | Created by Sudip_inn - Thursday, January 17, 2019 3:40 PM | Last reply by Wendy Zang - Monday, January 28, 2019 7:36 AM -
0 Votes
Parallel.ForEach and Monitor.TryEnter
Due too the context in which i'm running this code, i can't use of while(true) constructions on the consumer thread.Answered | 3 Replies | 5391 Views | Created by Jca - Sunday, June 26, 2011 6:12 PM | Last reply by Stephen Toub - MSFT - Wednesday, July 6, 2011 4:24 PM -
0 Votes
Parallel.ForEach hangs WCF Data Service
View in Browser with Parallel.ForEach hangs.Answered | 5 Replies | 8186 Views | Created by ISTEC - Thursday, March 4, 2010 8:56 AM | Last reply by ISTEC - Tuesday, March 16, 2010 6:38 PM -
1 Votes
Convert For Each GridViewRow to Parallel.ForEach GridViewRow
Parallel.ForEach(Of GridViewRow)(gvEmployees.Rows.OfType(Of GridViewRow)(), (AddressOf SendSummaryReport))Answered | 7 Replies | 4664 Views | Created by schwarem - Thursday, February 17, 2011 6:36 PM | Last reply by gsgill76 - Sunday, March 20, 2011 3:07 PM -
0 Votes
How to use Parallel.ForEach?
string[] files = System.IO.Directory.GetFiles(@"C:\Users\Public\Pictures\Sample Pictures", "*.jpg"); string newDir = @"C:\Users\Public\Pictures\Sample ...Answered | 2 Replies | 605 Views | Created by Freeskl - Friday, September 11, 2015 4:31 PM | Last reply by Kristin Xie - Monday, September 14, 2015 2:37 AM -
1 Votes
Trouble with Parallel.ForEach, cancellation and Dispose()
It's not actually a critical issue for us, as the only side effect is that a few buffers are returned to their buffer pool a bit late (when their finalizers run) rather ...Answered | 4 Replies | 9315 Views | Created by James Chaldecott - Tuesday, May 17, 2011 4:40 PM | Last reply by James Chaldecott - Monday, June 20, 2011 8:53 AM -
0 Votes
Problem Looping controls using Parallel.foreach
Hi, Try the following: using System.Linq; Parallel.ForEach<Control>(ascx.Controls.Answered | 2 Replies | 7342 Views | Created by wildchildbcn - Tuesday, June 8, 2010 11:20 AM | Last reply by wildchildbcn - Wednesday, June 9, 2010 7:15 AM - Items 1 to 20 of 1180424 Next ›
No announcements