引用本文
  • 蔡礼塬,龚定飞,黄鹤.双机热备系统的任务数据同步方法[J].柴油机,2024,46(3):15-19.    [点击复制]
  •    [点击复制]
【打印本页】 【在线阅读全文】 查看/发表评论下载PDF阅读器关闭

←前一篇|后一篇→

过刊浏览    高级检索

本文已被:浏览 115次   下载 135 本文二维码信息
码上扫一扫!
双机热备系统的任务数据同步方法
蔡礼塬,龚定飞,黄鹤
0
上海船用柴油机研究所,上海201108
摘要:针对通用控制器组成双机热备冗余架构,提出在任务执行过程中进行数据同步,增加CPU空闲同步线程的方法,减少控制任务周期内定时同步的次数,降低数据同步对控制任务实时性的影响。设计专用程序数据段用于同步数据的提取与拷贝,划分预定义同步数据区,并给出通过编译器链接脚本与C语言编程相结合的具体软件实现。软件运行结果表明,通过软件进行数据同步的方法正确有效,可实现热备冗余技术与业务软件的分离解耦,具有较强的易用性和可移植性。
关键词:  双机热备  数据同步  链接脚本  数据段  同步数据区
Task Data Synchronization Scheme of Dual-Machine Hot Standby System
CAI Liyuan,GONG Dingfei,HUANG He
Shanghai Marine Diesel Engine Research Institute, Shanghai 201108, China
Abstract:Aiming at the dual machine hot standby redundant architecture composed of a universal controller,a method of data synchronization during task execution,increasing CPU idle synchronization threads was proposed,which reduced the number of timed synchronizations within the control task cycle,and reduced the impact of data synchronization on the real-time performance of control tasks.A dedicated program data segment for extracting and copying synchronized data was designed,predefined synchronized data areas was divided,and a specific software implementation method that combines compiler linked scripts with C language programming was provided.The software operation results show that the method of data synchronization through software is correct and effective,can achieve the separation and decoupling of hot standby redundancy technology and business software,and boast strong usability and portability.
Key words:  dual-machine hot standby  data synchronization  link script  data segment  synchronized data area