首页 | 官方网站   微博 | 高级检索  
     

软件多进程结构改造为多线程结构的方法研究
引用本文:李慧,王丹力,戴国忠.软件多进程结构改造为多线程结构的方法研究[J].计算机仿真,2004,21(9):189-192.
作者姓名:李慧  王丹力  戴国忠
作者单位:中科院软件所,北京,100080
摘    要:将软件的某些进程结构改造为多线程结构,可以解决逻辑并发性、物理并行性等问题,显著提高运行效率。但如何改造(特别是大型软件)是一个比较困难的事情,方法不当很容易造成系统不稳定。该文针对目前该领域研究多局限于理论分析,缺少具体实施方法的问题,提出了一套在Linux环境下将软件的多进程结构改造成多线程结构的具体方案,并围绕改造信号量、信号处理和全局变量等几个难点,提出合理的解决方法。最后,应用此方法成功地将一个著名开放源代码数据库(Poatgre SQL)改造为多线程结构数据库。性能得到显著提高。

关 键 词:软件  多进程结构  多线程结构  操作系统  数据库
文章编号:1006-9348(2004)09-0189-04
修稿时间:2004年7月29日

A Study in the Scheme of Changing Software from Multi- processes Structure to Multi- threads Structure
LI Hui,WANG Dan-li,DAI Guo-zhong.A Study in the Scheme of Changing Software from Multi- processes Structure to Multi- threads Structure[J].Computer Simulation,2004,21(9):189-192.
Authors:LI Hui  WANG Dan-li  DAI Guo-zhong
Abstract:Using Multi-threads structures instead of some Multi-processes can solve some technical problems and improve software performance, but how to modify existing, especially large software has some difficulties. Unsuitable methods might destroy the stability of the software. In this paper, we put forward a proper scheme to solve this problem in Linux operation system, especially we raise rational methods to account for such three difficult points: semaphores, signal processing and global variables. We successfully applied the scheme to modify a famous open source DBMS.
Keywords:Process  Thread  Operating system
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号