什么是AWT Windows的线程? [英] What is AWT-Windows thread?

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

问题描述

当我与AWT工作,调用 Toolkit.getDefaultToolkit后(),我已经印在我的程序当前正在运行的线程。我想知道的是,在后台运行的 AWT Windows的线程。它是干什么的,为什么它有 6 的优先级。

When I am working with AWT, after calling the Toolkit.getDefaultToolkit(), I have printed the current running threads in my program. I would like to know what is that AWT-Windows thread that is running in the background. What does it do and why does it have 6 priority.

此外,线

Thread[AWT-Windows,6,main]

确实在意味着线程在主线程启动?

does the main mean that the thread is started in the main thread?

先谢谢了。

推荐答案

AWT 是Java抽象窗口工具包。 AWT的线程应该是处理所有AWT事件,渲染等...

AWT is the Java Abstract Window Toolkit. The AWT thread should be handling all AWT events, rendering, etc...

6 优先级只是一个高于正常优先级,使这个调度略微偏向朝它。

The 6 priority is just one above normal priority to make this scheduler bias slightly towards it.

是该组的线程。

修改

AWT Windows的线程专门处理从图形用户界面的原生Windows C ++ API轮询事件。处理事件的具体本地方法是<一个href=\"http://grep$c$c.com/file/repository.grep$c$c.com/java/root/jdk/openjdk/7-b147/sun/awt/windows/WToolkit.java#WToolkit.eventLoop%28%29\"相对=nofollow> sun.awt.windows.WToolkit.eventLoop()

The AWT-Windows thread specifically handles polling events from the native Windows C++ API for GUIs. The specific native method that handles the events is sun.awt.windows.WToolkit.eventLoop().

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

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