摘要
南极科考支撑平台的可靠运行需要高性能的监控服务器作为保障。南极监控服务器主要由数据采集与处理模块和数据收发与处理模块两部分组成。将这些功能抽象为服务器的时间事件和网络事件,采用Reactor模式来构建事件驱动的服务器程序,实现了业务代码与底层事件处理框架的分离,通过引入线程池来处理耗时任务或阻塞操作提高服务器的性能。
A high-performance monitoring server is essential to the reliability service of the Antarctic expedition supporting platform.The monitoring server consists of a data acquisition module and a communicating module.The reactor pattern is adopted to decouple the service logic and the underlying framework.Time-consuming tasks is handled to the thread pool in case of blocking the main thread.
出处
《工业控制计算机》
2016年第3期53-55,共3页
Industrial Control Computer
基金
江苏省自然科学基金项目项目支撑(BK20131300)