节点文献
基于Win32的多线程技术及其应用
Technology of multi-threading based on Win32 and their application
【摘要】 在现代人机交互的通讯控制方式中,多线程技术的应用越来越广泛。讲述了现代操作系统中多线程与进程的关系,引进多线程的好处,线程间的同步和在Win32系统中如何对传统的单进程系统的改造,提高了系统的运行效率,改善用户的交互性。因为在同一个进程中的线程由于共享存储空间和文件,它们无须调用内核就可以通信,这样使得不同执行程序间的通信效率大大提高。另外多线程进程在创建新进程时,与没有使用线程的进程相比,进程创建的速度大大提高。
【Abstract】 The muti-process and muti-thread technology are used more and more widely in the modern communication and con-trolling engineers of human-computer interactions. The relation of muti-thead and process, the reasons for bringing forward the multi-thead, and synchronization of the threads and how to reconstruct the traditional Single-process to muti-thread in the Win32 system are introduced. Using multi-thead can increase the program efficiency and improve the users’ interface. In the same process, threads can communicate each other without calling kernel for sharing the same memory and files, so the efficiency of communication is improved between different programs. On the other hand, when the process of multi-thread creates the new one, the speed is obviously improved comparing with those processes without threads.
- 【文献出处】 计算机工程与设计 ,Computer Engineering and Design , 编辑部邮箱 ,2003年10期
- 【分类号】TP316
- 【被引频次】15
- 【下载频次】133