title: What is the difference between task and thread?
body: <p>In C# 4.0, we have <code>Task</code> in the <em>System.Threading.Tasks</em> namespace. What is the true difference between <code>Thread</code> and <code>Task</code>. I did some sample program(help taken from MSDN)  for my own sake of learning with </p>
  
  <pre><code>Parallel.Invoke 
  Parallel.For 
  Parallel.ForEach 
  </code></pre>
  
  <p>but have many doubts as the idea is not so clear. </p>
  
  <p>I have initially searched in Stackoverflow for a similar type of question but may be with this question title I was not able to get the same. If anyone knows about the same type of question being posted here earlier, kindly give the reference of the link.</p>