gpt4 book ai didi

.net - Windows.System.Threading.ThreadPool 和 System.Threading.ThreadPool 有什么区别?

转载 作者:行者123 更新时间:2023-12-01 05:18:44 32 4
gpt4 key购买 nike

Windows Phone 8 SDK 文档没有描述 Windows.System.Threading.ThreadPool 之间的区别。和 System.Threading.ThreadPool .除了明显的API差异之外,两者之间还有什么区别吗?例如,它们是否使用相同的线程池?如果存在根本差异,我应该使用哪个以及何时使用?

最佳答案

Windows.System.Threading.ThreadPool 在基于 XAML 的应用程序中使用是“安全的”,System.Threading.ThreadPool 是适用于所有 .net 应用程序类型的标准 API。

如果您正在为 WP8 或 Windows 应用商店开发 XAML 应用程序,请使用 Windows.System 版本。

关于.net - Windows.System.Threading.ThreadPool 和 System.Threading.ThreadPool 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18089868/

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