正在加载图片...
Example applications using threads(cont Adobe Page Maker(cont Dynamic scrolling Redrawing the screen as the user drags the scroll indicator -- is possible. The event-handling thread monitors the scroll bar and redraws the margin ruler ( which can be done relatively quickly) Meanwhile, the screen-redraw thread constantly tries to redraw the page and catch up. (Each user click on the scroll bar aborts the previous drawing and starts a new one. In this example, the event-handling thread can be considered as doing foreground work while the screen -redraw thread is considered the background work11 Example applications using threads (cont.) • Adobe PageMaker (cont.) – Dynamic scrolling • Redrawing the screen as the user drags the scroll indicator -- is possible. The event-handling thread monitors the scroll bar and redraws the margin ruler (which can be done relatively quickly). • Meanwhile, the screen-redraw thread constantly tries to redraw the page and catch up. (Each user click on the scroll bar aborts the previous drawing and starts a new one.) In this example, the event-handling thread can be considered as doing foreground work while the screen-redraw thread is considered the background work
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有