Last post Feb 05, 2018 01:00 PM by Eric Du
Member
68 Points
240 Posts
Feb 03, 2018 06:56 PM|vinodkpasi|LINK
What is the dfference between Task.Run() and Task.Start() method?
183 Points
471 Posts
Feb 03, 2018 08:06 PM|vishabedre|LINK
IT might help
https://stackoverflow.com/questions/29693362/regarding-usage-of-task-start-task-run-and-task-factory-startnew
Participant
830 Points
273 Posts
Feb 04, 2018 03:39 AM|Khanna Gaurav|LINK
Following link may also help
1181 Points
286 Posts
Feb 05, 2018 12:27 PM|rajeeshmenoth|LINK
Hi,
Please check the following reference :
https://blogs.msdn.microsoft.com/pfxteam/2011/10/24/task-run-vs-task-factory-startnew/
Contributor
6730 Points
2715 Posts
Feb 05, 2018 01:00 PM|Eric Du|LINK
Hi vinodkpasi,
About the difference between Task.Run() and Task.Start() method, here is the official explanation of these two methods:
Task.Run(): Queues the specified work to run on the thread pool and returns a Task object that represents that work.
https://msdn.microsoft.com/en-us/library/hh195051%28v=vs.110%29.aspx
Task.Start(): Starts the Task, scheduling it for execution to the current TaskScheduler.
https://msdn.microsoft.com/en-us/library/dd270682(v=vs.110).aspx
For more details, please check this article: Task.Run() vs. Task.Factory.StartNew():
https://jeremybytes.blogspot.sg/2015/02/taskrun-vs-taskfactorystartnew.html
Best Regards,
Eric Du
Member
68 Points
240 Posts
Task.Run() and Task.Start()
Feb 03, 2018 06:56 PM|vinodkpasi|LINK
What is the dfference between Task.Run() and Task.Start() method?
Member
183 Points
471 Posts
Re: Task.Run() and Task.Start()
Feb 03, 2018 08:06 PM|vishabedre|LINK
IT might help
https://stackoverflow.com/questions/29693362/regarding-usage-of-task-start-task-run-and-task-factory-startnew
Participant
830 Points
273 Posts
Re: Task.Run() and Task.Start()
Feb 04, 2018 03:39 AM|Khanna Gaurav|LINK
Following link may also help
https://stackoverflow.com/questions/29693362/regarding-usage-of-task-start-task-run-and-task-factory-startnew
Participant
1181 Points
286 Posts
Re: Task.Run() and Task.Start()
Feb 05, 2018 12:27 PM|rajeeshmenoth|LINK
Hi,
Please check the following reference :
https://blogs.msdn.microsoft.com/pfxteam/2011/10/24/task-run-vs-task-factory-startnew/
RajeeshMenoth [ Rajeesh M R ]
Tech Blog | Twitter | LinkedIn
Contributor
6730 Points
2715 Posts
Re: Task.Run() and Task.Start()
Feb 05, 2018 01:00 PM|Eric Du|LINK
Hi vinodkpasi,
About the difference between Task.Run() and Task.Start() method, here is the official explanation of these two methods:
Task.Run(): Queues the specified work to run on the thread pool and returns a Task object that represents that work.
https://msdn.microsoft.com/en-us/library/hh195051%28v=vs.110%29.aspx
Task.Start(): Starts the Task, scheduling it for execution to the current TaskScheduler.
https://msdn.microsoft.com/en-us/library/dd270682(v=vs.110).aspx
For more details, please check this article: Task.Run() vs. Task.Factory.StartNew():
https://jeremybytes.blogspot.sg/2015/02/taskrun-vs-taskfactorystartnew.html
Best Regards,
Eric Du
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.