So I have a simple enough console app:
class Program
{
static void Main(string[] args)
{
Console.ReadKey();
}
}
I’ve built it with release configuration. When I run it and open task manager, I see it
has 4 threads. Why is this happening even though I’m not creating any threads?
This can’t possibly be each application. I tried opening notepad and it has just 1 thread. Although it is a native app and my console app is managed.
Any ideas?
I imagine threads you are seeing are:
This post details some of the special CLR threads.