Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

60. Sockets: Server Design > Iterative and Concurrent Servers

Iterative and Concurrent Servers

Two common designs for network servers using sockets are the following:

  • Iterative: The server handles one client at a time, processing that client’s request(s) completely, before proceeding to the next client.

  • Concurrent: The server is designed to handle multiple clients simultaneously.

We have already seen an example of an iterative server using FIFOs in A Client-Server Application Using FIFOs and an example of a concurrent server using System V message queues in Section 46.8.

Iterative servers are usually suitable only when client requests can be handled quickly, since each client must wait until all of the preceding clients have been serviced. A typical scenario for employing an iterative server is where the client and server exchange a single request and response.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint