计算机工程与设计
計算機工程與設計
계산궤공정여설계
COMPUTER ENGINEERING AND DESIGN
2010年
7期
1631-1634
,共4页
手机游戏%开发架构%负荷迁徙%I/O完成端口%自适应并发
手機遊戲%開髮架構%負荷遷徙%I/O完成耑口%自適應併髮
수궤유희%개발가구%부하천사%I/O완성단구%자괄응병발
mobile game%development framework%pressure movement%I/O completion port%self-adaptive concurrency
传统手机游戏开发架构中存在着3个亟待解决的问题:一是单个服务器资源易于衰竭;二是多线程间的同步和互斥耗费资源严重;三是服务器不能弹性地管理线程资源.为解决这些问题,提出了一种新的手机游戏开发架构,并详细说明这一架构中的负荷迁徙模块、基于I/O完成端口的线程池模块和消息模块.该架构较好地解决了传统开发架构中单个服务器资源易于衰竭,多线程间的同步和互斥所引起巨大的系统资源开销,及服务器不能弹性地管理线程资源等问题.实验结果表明,新的架构具有较好的效果.
傳統手機遊戲開髮架構中存在著3箇亟待解決的問題:一是單箇服務器資源易于衰竭;二是多線程間的同步和互斥耗費資源嚴重;三是服務器不能彈性地管理線程資源.為解決這些問題,提齣瞭一種新的手機遊戲開髮架構,併詳細說明這一架構中的負荷遷徙模塊、基于I/O完成耑口的線程池模塊和消息模塊.該架構較好地解決瞭傳統開髮架構中單箇服務器資源易于衰竭,多線程間的同步和互斥所引起巨大的繫統資源開銷,及服務器不能彈性地管理線程資源等問題.實驗結果錶明,新的架構具有較好的效果.
전통수궤유희개발가구중존재착3개극대해결적문제:일시단개복무기자원역우쇠갈;이시다선정간적동보화호척모비자원엄중;삼시복무기불능탄성지관리선정자원.위해결저사문제,제출료일충신적수궤유희개발가구,병상세설명저일가구중적부하천사모괴、기우I/O완성단구적선정지모괴화소식모괴.해가구교호지해결료전통개발가구중단개복무기자원역우쇠갈,다선정간적동보화호척소인기거대적계통자원개소,급복무기불능탄성지관리선정자원등문제.실험결과표명,신적가구구유교호적효과.
There are three critical problems in traditional mobile game development framework. Firstly, the resource in the single server may be run out. Secondly, synchronization and exclusion of multi-thread can lead to huge system resource consumption. Finally, server can not manage thread resources flexibly. To solve these problems, a new development framework for mobile games is proposed. In this framework, pressure movement module, module of thread pool based on I/O completion port, and message module are explained in detail. The proposed framework can solve three main problems caused by traditional framework. Firstly, single server may exhaust their resources. Secondly, synchronization and exclusion of multi-thread can lead to huge system resource consumption. Finally, server can not manage thread resources flexibly. Experimental results show that the proposed framework is effective.