摘要
为了提高调压铸造控制系统的实时性和控制精度,提出一种多线程实时调度的算法。研究基于程序片断的相关片断图分析方法与基于片断粒度和时间片的程序细分原理,将控制程序进行严格划分。分析事件驱动调度策略和时间片调度策略,综合考虑控制系统中两种调度策略的优先级别,对各线程程序片断进行程序细分和重组。该算法在某型调压铸造控制系统的应用中取得了良好的效果。实践证明,该算法能够使调压铸造工艺工作曲线安全平稳合理,大幅度的提高了产品的品质。
To improve the real time and control precision of the adjusted pressure casting control system,a multi-thread schedule algorithm is pre-sented.The analysis of the related-slice graph based on code slice and the theory of code subdivision based on slice granularity and timeslice are studied to strictly divide the control program.Analyze the strategies of event-driven schedule and timeslice schedule,then the multi-thread program slice is divided and recombined on the basis of the priority of all schedule strategies in control system.It was applied to an adjusted pressure casting system and the preferable effect is acquired.The result proves that the algorithm can make working curves of adjusted pressure casting safe,stable and reasonable,which significantly improve the quality of products.
出处
《数字技术与应用》
2011年第6期133-135,共3页
Digital Technology & Application
关键词
片断粒度
事件驱动调度
时间片调度
程序细分和重组
slice granularity
event-driven schedule
timeslice schedule
code subdivision and recombination