Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    You already have an answer - "Task inside and outside a loop". Can you please clarify what you don't understand? Especially after reading documentation on StartNew? Commented Jul 19, 2016 at 17:50
  • Will method2 create separate task for each for-loop or no ?? Commented Jul 19, 2016 at 17:52
  • @user3447602 How many times is DoWork() called in Method2 (inside the loop) and how many times when you just made a single call? If you can answer that you have the answer to your question. Commented Jul 19, 2016 at 18:00