更新时间:2022-04-27 23:17:54
If you just want to run some code asynchronously, look into using Task.Run
. It provides a much simpler mechanism than managing threads yourself.
如果要构建通用Windows Phone 8.1应用程序,则不能使用.NET Thread
类型.如果需要对执行进行更多控制,则可以使用WinRT ThreadPool
.
If you are building an Universal Windows Phone 8.1 app, you can't use the .NET Thread
type. If you need more control over the execution, you can use the WinRT ThreadPool
.
Finally, if you really really need lots of control, there's always CreateThread
if you want to write native code (this has recently been added to the allowed list of APIs for Store Apps, although MSDN isn't updated yet).