摘要
采用多进程处理多个任务,会占用很多系统资源(主要是CPU和内存的使用)。在LINUX中,则对这种弊端进行了改进,在用户态实现了多线程处理多任务。本文系统论述了多线程间通信技术的使用,通过对单cpu系统中多线程和多进程技术的比较和和性能分析,结合线程间通信技术的有关特性提出了应用该项技术所应遵循的原则和思路,并提出了改进思路,同时还讨论了多线程通信中存在的一些问题。
Using multi-processes to handle multi-tasks will use a lot of system resourees (mainly include cpu and memory).In linux os,this disadvantage is improved by using multi-threads to deal with multi-tasks.In this paper,we discuss the application of multi-threads and multi-processes by comparing their performance,In the end,we give a method which use multi-threads and multi-processes together to improve.Also we mention some problems in multi-threads communication.
出处
《微计算机信息》
北大核心
2005年第09X期118-120,149,共4页
Control & Automation
基金
国家863计划资助项目
可扩展到T比特的高性能IPv4/v6路由器基础平台及实验系统项目编号:2003AA103510
关键词
多线程
多进程
:multi-threads
multi-processes