What is Java2D Disposer Thread?

I created an example java application working with Hibernate, when I do a thread-dump, I observe a strange thread called Java2D Disposer.

Can someone tell me the function of this thread?

+6
java
source share
1 answer

Some objects in the AWT system need to finalize free resources. The most striking example is java.awt.Windows , which must recycle its own resources after the window is garbage collected.

One could do this with the help of finalizers, but the solution that gives you more granular control is to use phantom links with a link queue. This solution requires a dedicated thread that waits for a link queue. This stream is the Java 2D disposer stream that is created when the AWT system is initialized.

+9
source share

All Articles