哪一个是UI线程?什么是主线? [英] which one is UI thread? What is main thread?

查看:73
本文介绍了哪一个是UI线程?什么是主线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你怎么知道哪个ui线程是?

how can you know which the ui thread is?




推荐答案

你好,

您可以通过在App类构造函数中设置断点并看到当前线程ID来检测UI线程,该线程是app主窗口的UI线程。在WinRT中,CoreApplicaction创建自己的Thread用于渲染和处理Mani线程,只需
等待该线程完成。

You can detect UI thread by setting breakpoint in you App class constructor and the seen the current thread Id, and that thread is UI thread for app main window. In WinRT CoreApplicaction is create its own Thread for rendering and process Mani thread just wait on that thread complete.


这篇关于哪一个是UI线程?什么是主线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆