title: Multithreading takes more time than Sequential Execution in C#
body: <p>I am using Multithreading in my while loop ,
  as </p>
  
  <pre><code>while(reader.read())
  {
   string Number= (reader["Num"] != DBNull.Value) ? reader["Num"].ToString() : string.Empty;
    threadarray[RowCount] = new Thread(() =&gt;
    {
  
    object ID= (from r in Datasetds.Tables[0].AsEnumerable()
                                              where r.Field&lt;string&gt;("Num") == Number
                                              select r.Field&lt;int&gt;("ID")).First&lt;int&gt;();
  
  
   });
  
                  threadarray[RowCount].Start();
                  RowCount++;
  }
  </code></pre>
  
  <p>But with sequential execution ,for 200 readers it just takes 0.4 s
  but with threading it takes 1.1 sec... This is an example but i have same problem when i execute it with number of lines of code in threading with multiple database operations.</p>
  
  <p>for sequential it takes 10 sec for threading it takes more...</p>
  
  <p>can anyone please suggest me?</p>
  
  <p>Thanks...</p>