O'Reilly logo

Scaling for E-Business by Virgilio A. F. Almeida, Daniel A. Menascé

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10.2. A Simple Example

Consider a Web server with a fixed number m of threads. When a request arrives, it can be handled directly by a thread if one is available. Otherwise, it has to wait in a queue for threads as shown in Fig. 10.1. When a thread is executing a request, it may use the CPU and I/O resources. In the process of doing so, the thread may have to wait in the queue for the CPU and I/O. So. the total response time for a Web request can be decomposed into three types of components:

Figure 10.1. Example of Contention for Server Threads.

  • Software contention: time spent by a request waiting to obtain a software resource (e.g.. access to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required