Simple threaded server example. The server provides a "chat" service to multiple TCP clients. Anything sent by a client is forwarded to all other clients. Each client is handled by a thread, the threads all share information about the current list of clients through a set of global variables. Access to the global variables is restricted to a single thread at a time using a pthread_mutex. There is also a thread that provides system status through stdin,stdout. To test this server out, just run it and then use telnet to connect with a bunch of clients. MAXCLIENTS is currently defined to be 10, which means the server can support up to 10 clients at once. Files: Makefile: makefile for building the server server.c: source for the threaded server.