c# - .Net 应用程序的默认线程模型

标签 c# .net multithreading

我是编程新手,所以如果问题很愚蠢,请原谅我-

我想知道,在一个普通的C#程序中,我们没有在代码中手动创建多线程,整个程序是在一个主线程上运行还是
是否为程序的执行创建了其他一些线程?

最佳答案

来自 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.

关于c# - .Net 应用程序的默认线程模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38854906/

相关文章:

c# - 基于处理器类型在 C# 应用程序中运行可变线程

c# - 放置与桌面重叠的图像

c# - 使用smo获取Sql server的数据

java - 优先生产者消费者

C中创建多线程

Python SARIMA 模型自动使用 CPU 的所有核心。如何?

c# - 在出现暂时性错误时重试 LINQ to SQL 查询

c# - 如何在单元测试中将 FakeItEasy 与 HttpClient 一起使用?

c# - TeeChart - 馅饼或 donut 标记 donut 的内部馅饼

c# - 是否有任何有值(value)的 CSLA 替代品可用?