多进程并发在国内气象通信系统的应用
Concurrent Multiprocess Application to Domestic Telecommunication System
-
摘要: 该文介绍了多进程并发在国内气象通信系统中传输新增资料的应用, 针对国内新增气象资料种类繁多 、信息量大 、传输时效要求高、传输频率快等特点, 传输软件通过使用避免僵尸进程产生的方法以及对多种进程间通信技术的比较, 选择了更好满足需求的消息队列通信技术, 使气象资料在国内气象通信系统中的处理时间缩短为原来的 43%, 提高了各种新增气象资料的传输效率 , 为气象资料提供了更好的共享平台, 更好地发挥各种探测仪器的作用。Abstract: As the national meteorological telecommunication center, Beijing Meteorological Telecommunication System (BMTS) is mainly responsible for the collection and dissemination of national meteorological data. With all kinds of means of exploration and products of weather service teeming, domestic meteorological telecommunication software cannot satisfy the meteorological data real time transmission needs, so meteorological data can not be used in time. Communication software is imperative to improve the ability to exchange information to meet the ever-increasing demand for the exchange of real-time weather information. Along with the computer technology development, the multi-advancements technology also obtained the widespread application and development. By analyzing the causes and treatment of the zombie process, function waitpid ( ) is used to avoid the zombie process. Furthermore, corresponding strategy is formulated by analyzing the quit status information and it is made sure that meteorological data exchange accurately, timely and efficiently in BMTS. On the other hand, by comparing many interprocess communication technologies and combining domestic communications features and the actual business, message queue is adopted. Now the processing time of newly data on BMTS decreases to 43%. After solving the problems above, multi-process technology is applied on BMTS, by which the transmission efficiency of domestic meteorological data is improved. This software has been running reliably and stably in the system since 2005 and real-time exchanging and sharing of the nationwide newly meteorological data are ensured.
-
表 1 新增资料在国内通信系统的处理时间
Table 1 New data process time in domestic Meteorological Telecommunication System
-
[1] Stevens W R. UNIX Network Programming Volume Interprocess Communications. 2000: 50-100. [2] 冉茂农,瞿建华,沙利, 等.基于DVB-S数据共享平台的NOAA/ATOVS资料获取、处理与显示系统. 应用气象学报, 2006, 17(4): 502-508. http://qikan.camscma.cn/jams/ch/reader/view_abstract.aspx?file_no=20060487&flag=1 [3] Yves Lepage Paul larrera . UNIX系统管理员大全. 段剑波, 译. 北京: 清华大学出版社, 2000: 156-157. [4] Robbins K A, Robbins Steve.UNIX Systems Programming: Communication, Concurrency and Threads. 2005: 20-24. [5] 周明德. UNIX/Linux核心. 北京: 清华大学出版社, 2004: 70- 72. [6] 蔡传俊.UNIX/TCP/IP/NFS网络编程与应用开发. 北京: 海洋出版社, 1993: 22-24. [7] 周明天, 汪文勇.TCP/IP网络原理与技术. 北京: 清华大学出版社, 2001: 186-187. [8] Stevens W R.UNIX网络编程 (第1卷) . 北京: 机械工业出版社, 2004: 56-58. [9] Douglas E Comer. 用TCP/IP进行国际互联. 赵刚, 译. 北京: 电子工业出版社, 2001. [10] Robbins K A, Robbins Steve. UNIX Systems Programming: Communication, Concurrency and Threads. 2005, 5: 20-24. [11] 郑彦兴.Linux 环境进程间通信. http://www-128.ibm.com/developerworks/cn/linux.2004 [12] 段晓航, 刘京志, 王凌. UNIX系统高级程序设计. 北京: 中国铁道出版社, 2001: 40. [13] 张炯. Unix网路编程实用技术与实例分析.北京: 清华大学出版社, 2002: 120-126.