Client/Server Systems
- $$
- A Client/Server is a distributed system whereby the application is divided into at
least two parts:
- 1
- one or more servers perform one part
- 2
- the other part is performed by one or more clients.
- $$
- Modern programming languages provide constructs for building client/server-based distributed applications.
- $$
- These applications are divided into clients and servers, which are allocated to different computers in a network.
- A client sends a request to the server and waits for a response.
- At the other end, when the server receives a request, it processes it and sends the results back to the client.
- $$
- In a database system, several clients send queries to the server that has access to the database.
- $$
- The server executes the queries on behalf of the clients and sends each client its respective result.
- A multithreaded process is considered an efficient way to provide server applications.
- A server process can service a number of clients as shown in Fig. 2.
Figure 2:
A multithreaded server in a client server system.
|
- Each client request triggers the creation of a new thread in the server.
Subsections
Cem Ozdogan
2010-12-20