《基于多线程的高性能服务器程序的设计》.docVIP

  • 2
  • 0
  • 约1.58万字
  • 约 8页
  • 2016-12-11 发布于贵州
  • 举报

《基于多线程的高性能服务器程序的设计》.doc

Design of high-performance server program which based on multithreads Abstract: Along with the network applications rapid development, the high-performance server program highlights its important status more and more. In the article has designed a high-performance server program based on multi-threads, thus to puts forward good solutions to process client concurrent request problem. Firstly introducing the principle of IOCP model, then, using the Select model and the IOCP model respectively, put a different design method for the high-performance server program design, through comparing the time, CPU utilization and memory utilization ratio and many other parameters, concluded that IOCP provides the best performance of the system in design on the server. Finally puts forward design scheme of high-performance server program. Keywords: Select model, IOCP model, Concurrency control, Event ; flow control 1 Introduction At present there are many server programs use “one to one” disposing mode, namely one client takes a thread, designs on the architecture of server programs which based on this kind of pattern is very simple, but since uses is “a client/thread” pattern, therefore this kind of server program appears very low in the performance regarding over a thousand clients request connections, and is also costly on system resources. Because the operating system must carry on the dispatch for the massive threads, it will lose the massive system resources, and mutex control will also be very difficult, the deadlock occur frequency will greatly increase. Nowadays the high performance server programs design becomes more and more important, the high performance server programs main function is that it can process massive concurrent clients request efficiently, and process clients data timely, simultaneously gives the part of the response information back to the client side. To design a good performance of server program, must consider many factors, like CPU utilization rati

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档