摘要
为提高对太阳能电池的检测效率,确保数据采集的实时性和采样间隔的一致性,设计了两级队列调度的数据通信模型。系统采用以太网/串口适配器构建的星型拓扑结构,实现了分布式的数据处理。根据Bernstein条件的推导论证,通信模型采用两级队列调度,可有效防止临界资源的竞争对采样周期的干扰。基于PV原语,设计了相应算法。该算法解决了采样、队列与归档三类线程对两级队列的同步与互斥,并在太阳能电池的批量检测中取得良好效果。
In order to enhance the detection efficiency for solar cells and ensure the real-time performance of data acquisition and consistency of sampling intervals,the two-stage queue scheduling communication model is designed.The star topology structure constructed by Ethernet/serial adapter is used in the system for implementing distributed data processing.In accordance with derivation and proof of Bernstein/'s conditions,by adopting two-stage scheduling,the communication model is able to effectively prevent the interference on sampling period caused by critical resource competition.The corresponding algorithm solves the synchronization and mutual repellence of two-stage queue among sampling thread,queuing thread and archiving thread by PV primitive,and achieves good results in batch detection of solar cells.
出处
《自动化仪表》
CAS
北大核心
2011年第10期66-68,71,共4页
Process Automation Instrumentation
基金
上海市科委科技攻关计划基金资助项目(编号:10160501700)
关键词
队列调度
分布式处理
临界资源
太阳能电池
数据采集
信号量
同步
Queue scheduling Distributed processing Critical resource Solar cell Data acquisition Semaphore Synchronization