gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 21:09:29 25 4
gpt4 key购买 nike

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

我想知道,在一个普通的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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com