java - How does SwingUtilies.invokeLater(new Runnable()) really work? -
java - How does SwingUtilies.invokeLater(new Runnable()) really work? -
as far know method swingutilies.invokelater(new runnable())
used forcefulness edt jobs defined in runnable
- object , how 1 can imagine this? run()
method in runnable
- object used execute java stuff in new thread, not here, because here runnable
- object invokes edt?
runnable interface single method run(). having access runnable object can phone call method. threads this. edt this. executors this. programme can so. convention. other software can utilize different convention, say, executorservice can phone call callable objects.
internally, edt has own run method which, in loop, extracts runnable objects queue , calls run() method.
java multithreading
Comments
Post a Comment