visual studio 2010 - Parallel Processing/Parallel Programming in C# -


I need to process more than one function that returns results returning the same type of archives. I am considering my work, using Visual Studio 2010 under C #:

  class search {public list & lt; Wrecords & gt; GetrecordsofAAA (string word); Public listing & lt; Wrecords & gt; GetrecordsofBBB (string word); Public listing & lt; Wrecords & gt; GetrecordsofCCC (string word); }   

And so caller to work like this

  list & lt; Wrecords & gt; Record 1 = Search Gaterecordafaaaa (heart); & Lt; Wrecords & gt; Record 2 = Search Getrecords BBB (heart); & Lt; Wrecords & gt; Record 3 = Search GetrecorstsFCCC (Heart);   

This series is processing.

I need Records1, Records 2 and 3 records, if possible, to be filled up together.

  // Make a list of search functions that you want to call. Var Search = New List & lt; String, funk & lt; String, IEnumerable & lt; Wrecord & gt; & Gt; & Gt; {A = & gt; GetrecordsofAAA (A), A = & gt; GetrecordsofBBB (A), A = & gt; GetrecordsofCCC (A), // execute them in parallel and the result is wrecord ienumerable and lt; IEnumerable & lt; Wrecord & gt; & Gt; Results = Search Asperal (). Select (A = & gt; One (heart));    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -