摘要
多线程技术是实现需要并发执行的应用程序的较好选择,具有不可替代的作用。文中介绍了进程、线程以及应用程序域的概念及其相互之间的关系,讨论了VisualBasic.NET对多线程的支持。并从线程的创建与管理、线程取消、线程的优先级、线程的状态、线程池、线程的同步等方面展示了如何使用多线程编程技术来创建多线程应用程序。每个线程都需要资源,创建的线程过多,反而会降低应用程序的性能。在设计多线程应用程序时,应慎重对待,建立合理的系统模型,才能使应用程序获得最佳的性能。
Multithread as an indispensable technique is a good choice to implement concurrent application.This paper introduces the definitions of process, thread, AppDomain and their relationship, then describes Visual Basic.NET 's support of multithreading. It discusses how to manage the threads, priority, thread pool, synchronization,etc. It also presents how to develop the multithreaded application by multithreading based on Visual Basic .NET. Every thread needs resource. So creating of too many threads will degrade the performance of application. When the multithreaded applications were designed, it must be treated carefully. To get the best performance, a sound system module is necessary to set up.
出处
《微机发展》
2004年第11期101-103,共3页
Microcomputer Development