首页 | 本学科首页   官方微博 | 高级检索  
     检索      

在同一多线程中执行定时任务和随机任务
引用本文:李涛,王警警.在同一多线程中执行定时任务和随机任务[J].飞行器测控学报,2006,25(6):91-94.
作者姓名:李涛  王警警
作者单位:91550部队 辽宁大连.116023
摘    要:如何协调地在同一个多线程中完成定时任务和随机任务以及数据交换是多线程程序设计的一个重要任务。文中总结分析了2种多线程的实现方法,即用户接口线程方式和工作者线程方式。为了在同一多线程中执行定时任务和随机任务,将多种任务封装成一个对象,在多线程中根据指令进行调度。文中将多线程看作一个虚拟的下位机,主线程等采用串行通信协议的原理实现与多线程之间的多种任务复杂数据交换和通信。

关 键 词:多线程  定时任务  随机任务  通信协议
收稿时间:2006-08-17
修稿时间:2006-10-10

Execution of Timed Tasks and Random Tasks in One Multithread
LI Tao ,WANG Jing-jng.Execution of Timed Tasks and Random Tasks in One Multithread[J].Journal of Spacecraft TT&C Technology,2006,25(6):91-94.
Authors:LI Tao  WANG Jing-jng
Institution:PLA Unit 91550, Dalian, Liaoning Province 116023
Abstract:A key task in design of a multithread program is coordinated performance of timed tasks and random tasks and data exchange in the same multithread.The paper proposes two methods for multithread implementation,namely,user-interface thread and worker thread.To execute timed tasks and random tasks in the same multithread,multiple tasks are encapsulated as one object for dispatch in the multithread according to instructions.The multithread is viewed as a virtual machine.The main thread communicates and exchanges data with the multithread in accordance with serial communication protocols.
Keywords:Multithread  Timed Task  Random Task  Communication Protocol  
本文献已被 CNKI 维普 等数据库收录!
点击此处可从《飞行器测控学报》浏览原始摘要信息
点击此处可从《飞行器测控学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号