First of all, I think we need to understand what flows are?
Themes:
Threading allows your program to do parallel processing so that you can perform more than one operation at a time. For example, you can upload heavy images to the application, perform background tasks, and at that time you can process streaming video in files.
If you will not use streams - then when you upload images to your application, your user interface is stuck so that you can do nothing more, just waiting for the images to complete loading.
So why does our application start with 7-8 threads?
So let's see what topics we have:
By default, a C # program has one thread. This thread executes the code in the program, starting and ending with the main method.
You also have a garbage collector that is responsible for destroying objects when their life cycle ends.
And there are a few more debug threads.
Misha zaslavsky
source share