Home Segments Top Top Previous Next

891: Mainline

The main thread in your program maintains a work queue of display operations. Fortunately, a not-well-known Java mechanism enables you to add your own work-describing class instances to that work queue. That way, your work occurs in between other work on the queue, rather than simultaneously with that other work.