摘要
文章讨论了多线程并发服务器设计与实现所涉及到的相关知识和编程基础,并用Java实现了一个围棋和五子棋多线程并发服务器。五子棋服务器提供的服务是客户端(人)和服务器端(机器)对弈;围棋服务器是为两客户对弈提供一个中间通信平台,围棋客户端是一个模拟棋室,共有4个棋桌和8个座位,能同时有4对棋手对弈并允许多人观看。
This article discussed the multi-thread concurrent server design and the realization involves to the related knowledge and the programming foundation, and has realized a Chinese chess and the gobang multithreading concurrent server with Java.The service which the gobang server provides is the client side (person) and the server (machine) plays chess,the Chinese chess server is two customers playing chesses provides a among communications platform,the Chinese chess client is a simulation chess room,altogether has four tables and eight seats,can have four pair of players to play chess at the same time,and permits many people to look at the chess.
出处
《电脑与信息技术》
2007年第1期15-17,42,共4页
Computer and Information Technology
基金
美国Gene Chiu基金资助项目(GCF2006-001)