计算机工程与设计
計算機工程與設計
계산궤공정여설계
COMPUTER ENGINEERING AND DESIGN
2010年
21期
4736-4738,4739
,共4页
多线程%完成端口%模拟法庭%可扩展性%服务器
多線程%完成耑口%模擬法庭%可擴展性%服務器
다선정%완성단구%모의법정%가확전성%복무기
针对模拟法庭服务器存在大量并发客户请求问题,引入了完成端口(IOCP)多线程控制模型,建立了以主线程、监听线程、服务线程为核心的服务器架构.通过分析数据包的错序原因,提出了具体的解决方案.利用池技术思想,设计了线程池和数据库连接池,较好地解决了多线程竞争资源问题,有效避免CPU在线程调度和切换上的大量开销,充分利用了系统资源,经系统测试结果表明,该服务器能够支持海量并发连接,并具有较强的可扩展性和稳定性.
針對模擬法庭服務器存在大量併髮客戶請求問題,引入瞭完成耑口(IOCP)多線程控製模型,建立瞭以主線程、鑑聽線程、服務線程為覈心的服務器架構.通過分析數據包的錯序原因,提齣瞭具體的解決方案.利用池技術思想,設計瞭線程池和數據庫連接池,較好地解決瞭多線程競爭資源問題,有效避免CPU在線程調度和切換上的大量開銷,充分利用瞭繫統資源,經繫統測試結果錶明,該服務器能夠支持海量併髮連接,併具有較彊的可擴展性和穩定性.
침대모의법정복무기존재대량병발객호청구문제,인입료완성단구(IOCP)다선정공제모형,건립료이주선정、감은선정、복무선정위핵심적복무기가구.통과분석수거포적착서원인,제출료구체적해결방안.이용지기술사상,설계료선정지화수거고련접지,교호지해결료다선정경쟁자원문제,유효피면CPU재선정조도화절환상적대량개소,충분이용료계통자원,경계통측시결과표명,해복무기능구지지해량병발련접,병구유교강적가확전성화은정성.