摘要
编程型游戏采用多线程技术实现对角色控制程序的执行和调度。阐述了编程型游戏的线程调度模型和基于.NET框架的实现技术,包括协作多线程调度模型、调度线程的算法、基于AutoResetEvent的线程同步技术、角色控制程序的基本结构和线程管理模块的构成。测试结果表明,采用所述线程调度模型和技术的线程管理模块能够对角色线程进行有序调度,性能良好。
Programming games execute and schedule the Role-Control-Programs by using multi-thread. The game system' s Thread-Scheduling-Model and implementation based on. NET framework are described, including Collaborative Multi-threaded Scheduling Model, thread scheduling algorithms, thread synchronization based on AutoResetEvent, basic structure of the Role- Control-Programs, composition of Thread-Manage-Module. The result of the experiment shows that the Thread-Manage-Module which using these model and technique has the ability to schedule the Role-Thread orderly and rapidly.
出处
《电脑开发与应用》
2010年第6期37-39,共3页
Computer Development & Applications
基金
韩山师范学院青年科学基金项目(韩科字[2006]02号)
关键词
编程型游戏
多线程
调度模型
.NET框架
programming games, multi-thread, scheduling model, . NET framework