• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Display > Multithreaded Programming

5.7. Multithreaded Programming

In SWT, by definition, the thread that creates the display is called the user interface thread. This thread is responsible for reading and dispatching events from the operating system event queue and invoking listeners in response. You can find out which thread is the user interface thread for a particular display by calling the getThread() method on the display:

getThread() Returns the thread that is running the event loop on that display.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint