首页> 中文期刊> 《农业机械学报 》 >温室环境监控系统网关多进程调度方法

温室环境监控系统网关多进程调度方法

             

摘要

作为应用层与感知层的桥梁,网关通常具有多个进程.温室环境监控系统中各个进程间的调度是否合理直接影响到网关甚至温室环境监控系统的性能.针对网关的多进程调度问题,研究并设计了一种网关的多进程调度算法(Multiple thread schedule algorithm,MTSA).该算法先通过网关向服务器推送数据的时间间隔、进程数目、最大功率与有效功率的关系来确定每个进程被挂起的时间片,然后通过合理地控制每一个进程的执行顺序及执行时间片来有效地降低数据阻塞度.在实验中,本文方法的数据丢失率为3.4%,而启发式方法的数据丢失率为56%,表明本文方法优于启发式方法.%As Internet of things (IoT) has stepped out of the infancy and is gaining more and more popularity around the world,the gateway of environmental monitoring system has also always been attracting people's eyes.With the capability to bridge application layer with sensing layer,gateway usually possesses multiple threads.Reasonably scheduling these threads matters most to the performance of gateway even the environmental monitoring system.Targeting at reasonable schedule,a kind of multiple threads schedule algorithm was researched and developed (MTSA) to weaken data jam by suitable duration of pending each thread and reasonable control for the execution sequence of thread.This duration was subject to the interval between two operations of pushing data from gateway to Web Server,the number of threads,and the relationship between maximal and effective power consumption.In order to overcome the difficulty in deciding the duration of pending each thread just by experience,the multiple threads integrated into the gateway of the environmental monitoring system were firstly displayed,and then the specific steps of MTSA were presented.In addition,the duration of pending each thread in MTSA was determined by taking the relationship between the maximal and effective power consumption into consideration,and the impact of MTSA on weakening data jam was also analyzed.With the purpose of demonstrating the performance of MTSA,a field experiment in the grape greenhouse was carried out.In this experiment,the comparison between MTSA and a popular algorithm of heuristic method (HM) was done in terms of decreasing the data loss to check the higher efficiency of MTSA than HM in guaranteeing that Web was capable of receiving the environment data,including temperature,relative humidity and illumine.As for the experiment results,data loss by NTSA was only 3.4%,which was much more less than that of 56% by HM,which verified the use of MSTA.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号