并行Observer模式在实时系统中的应用  被引量:2

The application of parallel Observer pattern in real time system

在线阅读下载全文

作  者:孙瑜[1] 郭新东 Sun Yu;Guo Xindong(College of Information and Engineering,Shanxi Agricultural University,Jinzhong,Shanxi 030800,China)

机构地区:[1]山西农业大学信息科学与工程学院,山西晋中030800

出  处:《计算机时代》2018年第6期64-66,共3页Computer Era

基  金:山西农业大学科技创新基金(2016001;2017011)

摘  要:为了使实时系统中大量数据更新能够及时反馈到相应的模块中,设计了多个主题更新数据的Observer改进模式。该模式使用并行的方式通知相关注册的观察者模块,通过为每个通知方开启独立线程的方式,使得主线程和各模块线程都不被阻塞,并且保证数据更新及时有效。将该设计运用到温室环境监测系统中后,传感数据基本能够及时更新到仪表面板及相应的监测点中,满足一定的实时性。In order to timely feedback a large number of data updates to the corresponding modules in the real-time system, the improved Observer pattern with multiple theme updating data is designed. This pattern uses a parallel way to notify the related registered observer module by opening an independent thread for each notification party, making the main thread and the module threads not blocked, and ensuring that the data updates are timely and effective. When this design is applied to the greenhouse environmental monitoring system, the sensing data can be updated to the panel and the corresponding monitoring points in time,which meets the need for real time.

关 键 词:OBSERVER 设计模式 线程 实时系统 

分 类 号:TP309[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象