温室环境监控系统网关多进程调度方法
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

国家自然科学基金项目(61425027、61425024)、 国家重点研发计划项目(2016YFB0901901)、中国农业科学院创新工程项目


Schedule Algorithm of Multiple Threads of Gateway of Environmental Monitoring System in Greenhouse
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    作为应用层与感知层的桥梁,网关通常具有多个进程。温室环境监控系统中各个进程间的调度是否合理直接影响到网关甚至温室环境监控系统的性能。针对网关的多进程调度问题,研究并设计了一种网关的多进程调度算法(Multiple thread schedule algorithm, MTSA)。该算法先通过网关向服务器推送数据的时间间隔、进程数目、最大功率与有效功率的关系来确定每个进程被挂起的时间片,然后通过合理地控制每一个进程的执行顺序及执行时间片来有效地降低数据阻塞度。在实验中,本文方法的数据丢失率为3.4%,而启发式方法的数据丢失率为56%,表明本文方法优于启发式方法。

    Abstract:

    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.

    参考文献
    相似文献
    引证文献
引用本文

侯琛,王海波,刘凤之,史祥宾,赵千川.温室环境监控系统网关多进程调度方法[J].农业机械学报,2017,48(5):167-173.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2016-08-31
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2017-05-10
  • 出版日期: