Design and implementation of server for moot court online

Aimed at the problem of a large number of clients’ concurrent requests in moot court,IOCP multi-threads controlling model is introduced,and the server framework which is made of main thread,watcher thread and service thread is constructed.By analyzing the reason of out-of-sequence data package,an appropriate solution is presented.Thread pool and database connection pool based on pool technology are designed,which solves the problem of multi-threads competition,effectively lowers consumption of CPU in switching and regulating the work thread,completely uses system resources.Experimental results show that the server can support massive concurrent connections,and has high scalability and performance.