AWT and Swing use this model, in which there is a GUI event thread, and all work that causes changes in the user interface must execute in that thread.
AWT和Swing就使用这个模型,在这个模型中有一个GUI事件线程,导致用户界面发生变化的所有工作都必须在该线程中执行。
The PresentationReconciler class updates the text's appearance with every keystroke, and the Reconciler class runs in a daemon thread, parsing the document without holding up the user interface (UI).
presentationreconciler类根据每次击键更新文本的外观,而Reconciler类运行一个守护线程,不必将用户界面(UI)挂起就能解析该文档。
Specifically, if everything is happening in a single thread, performing long operations such as network access or database queries on the UI thread will block the whole user interface.
特别是,如果把所有的事件都放在主线程中来处理,需要长时间来处理的事件比如网络访问或者数据库查询,会阻塞整个UI。
So, you must not manipulate your UI from a worker thread-you must do all manipulation to your user interface from the UI thread.
因此不允许从工作线程中操作ui——只能从UI线程中操作用户界面。
Eclipse has a single thread for managing the user interface, and some SWT API methods may only be called from that thread. (see Resources for more information).
Eclipse有一个用于管理用户界面的线程,而且某些SWTAPI方法只能通过该线程调用(有关更多信息,请参阅参考资料)。
When a pluglet is executed, it runs on the Rational Software Architect (User Interface) UI thread.
当运行pluglet 时,它在RationalSoftware Architect(用户界面)UI 线程上运行。
A user-interface thread is commonly used to handle user input and respond to user events independently of threads executing other portions of the application.
使用者介面执行绪通常用来处理使用者输入和回应与执行绪没有关系之执行应用程序其他部分的使用者事件。
Since everything happens on a single thread performing long operations, like network access or database queries, on this thread will block the whole user interface.
一旦所有的事件都在一个线程中进行耗时的操作,比如说在这个线程上进行网络连接,数据库访问,会阻塞程序的界面响应。
Since everything happens on a single thread performing long operations, like network access or database queries, on this thread will block the whole user interface.
一旦所有的事件都在一个线程中进行耗时的操作,比如说在这个线程上进行网络连接,数据库访问,会阻塞程序的界面响应。
应用推荐