Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default threading model for a .Net application

I am new to programming, so please pardon me for if the question is a silly one-

I want to know that, in an ordinary C# program where we don't create multi-threads manually in the code, does the whole program run on a single main thread OR there are some other threads created for the execution of program?

like image 620
Ayush Avatar asked Mar 11 '23 11:03

Ayush


1 Answers

From Threading (C#):

By default, a C# program has one thread. However, auxiliary threads can be created and used to execute code in parallel with the primary thread.

like image 117
itsme86 Avatar answered Mar 23 '23 05:03

itsme86