摘要
计算机后台处理和多线程技术主要用于处理并行业务,使前台程序和后台程序同步执行,防止程序"假死".在微软新一代的.net编程平台中,提供了4种实现后台处理和多线程的编程方法:BackgroundWorker控件专门处理后台程序;Threading类和ThreadPool类实现多线程编程;Timer类实现定时处理.结果表明,多线程编程可增加程序执行的效率,缩短程序总体运行时间.
The background processing and multi-threading technology provides a way for Parallel work to make the foreground program and background program processed at same time to avoid application suspending.In the last version of.net platform,there are four components provided for background processing and multi-threading technology: Background Worker provides an easy way to run time-consuming operations on a background thread;Threading and Thread pool enable multithreaded programming;Timer provides a mechanism for executing a method at specified intervals.According to the practice,the application gets better efficiency and shorter time cost with multi-threading programming.
出处
《昆明学院学报》
2010年第3期82-85,共4页
Journal of Kunming University
关键词
多线程
控件
线程
线程池
计时器
multithreaded programming
BackgroundWorker
Threading
ThreadPool
Timer