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

5.8. Timers

Timers allow an arbitrary block of code to be run after waiting for a timeout interval. Timers are not implemented as interrupts. They are executed in the user interface thread like other operating system events. In fact, on some platforms, they are implemented as operating system events, coming in through the event queue like any other event. In any case, timers run before syncExec() and asyncExec() blocks, which run only when the user interface is idle.

The following method, on class Display, is used to create a timer.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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