I’ve just asked question about Task but realized that I actually want to ask more general question.
Could someone summarize pros and cons of Tasks and Threads.
How to understand should I use Task or Thread?
I’ve just asked question about Task but realized that I actually want to ask
Share
Taskis an order to program to do something in asynchronous way. TheThreadis actuallyOSkernel object which executes what was requested. Think aboutTasklike a clever thread aggregator/organizer that “knows” how much task is better to run contemporary on yourCPU. It’s just cleverer then common implementations of multi-threading (that’s why it’s suggested choice from Microsoft). It’s a feature that helps you managingThreadsin easier way.Look also on this Should i use ThreadPools or Task Parallel Library for IO-bound operations that may give you some hints on performance issues you may be interested in.