检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]海军航空工程学院青岛分院,山东青岛266041
出 处:《兵工自动化》2009年第1期92-93,96,共3页Ordnance Industry Automation
摘 要:一种基于多线程的串口通信程序,导航计算机为每个串口创建一个数据接收线程,监视串口的状态,看有无数据到达,进行数据接收。而主线程则专心进行导航解算,输出导航数据至显示计算机。操作系统将CPU时间划分成许多时间片段,并按一定的优先级将时间片段分配给各个线程,线程只有在分配的时间片内才有对CPU的控制权,从而实现微观上轮次执行,宏观上并发运行的多任务机制。Introduce a programming schema of multi-serial communication based on multi-thread technology. The navigation computer creates a sub-thread for each serial port; the main-thread concentrates on navigation calculation and output data to the display computer, while the sub-threads watch serial ports and store the data when received. Operation system divides CPU time into many segments of time, allocates a small unit of CPU time to one thread according to the priority of thread. Only thread is time-sliced, thread gets the control of CPU, thus achieving the multi-tasking mechanism of turn execution on microscopic and concurrent execution on macroscopic.
分 类 号:N945.13[自然科学总论—系统科学]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.15