摘要
VxWorks 653提供的API在实现分区进程间大数据共享时,会出现系统资源消耗过大、内存无法回收利用等问题,而且不能保证共享数据的更新率和连续性。为此,设计并实现了一种基于双缓存机制的数据共享方法。这种方法动态创建两块缓存,根据进程不同优先级进行读、写、释放内存等操作,实现数据共享。实验结果证明,这种双缓存机制能在不影响系统调度的情况下,高效完成进程间的大数据共享,并且该方法可以有效节省系统资源,具有良好的通用性和可移植性。
When sharing big data among partition processes,the API provided by VxWorks 653 excessively consumes the system resources and makes the memory unrecyclable.In addition,this API cannot ensure the update rate and continuity of the shared data.To resolve these problems,a data sharing method based on double-caching mechanism is designed and implemented.This method dynamically creates two areas of cache and performs the actions of read,write,and memory release depending on priorities of the processes.The experimentel results show that this double-caching mechanism can efficiently share data among processes and effectively save system resources without affecting the system schedule.Moreover,this data sharing method offers good versatility and portability.
出处
《测控技术》
CSCD
2016年第11期98-102,共5页
Measurement & Control Technology
作者简介
徐克(1980-),男,山东枣庄人,硕士,工程师,主要研究方向为系统综合测试、验证技术等。