Tasks can be used to make your application more responsive. If the thread that manages the user interface offloads work to another thread from the thread pool, it can keep processing user events and ensure that the application can still be used. But it doesn’t help with scalability. If a thread receives a web request and it would start a new Task, it would just consume another thread from the thread pool while the original thread waits for results.
Executing a Task on another thread makes sense only if you want to keep the user interface th...
- Objective 1.1: Implement multithreading and asynchronous processing
- from Exam Ref 70-483: Programming in C#
- Publisher: Microsoft Press
- Released: July 2013
Share this highlighthttp://www.safaribooksonline.com/a/exam-ref-70-483/74854/