摘要
针对通用电子装备仿真系统的高效性要求,分析了当前基于Windows操作系统程序的消息循环机制及使用MFC开发的应用程序执行效率不高的主要原因.通过重载IsIdleMessage函数和直接发送WM_KICKIDLE消息,优化了操作系统内部对闲置处理的控制,避免了系统因频繁执行闲置处理而造成消息阻塞,降低了系统资源的占用,提高了通用电子装备仿真系统的运行效率.
The paper analyses mechanism of message loop based on the Windows operation system and the reasons of low efficiency in execution of a program which is developed by using MFC. By overlapping the function of IsIdleMessage and posting the message of WM_KICKDLE to optimize the controlling of management in idle time, avoided the message blocking, decreased the occupation of system resource, and increased the efficiency in execution of the simulation system.
出处
《装备指挥技术学院学报》
2003年第2期80-83,共4页
Journal of the Academy of Equipment Command & Technology