Question: In this problem you are asked to compare the performance of a web-server implemented as a single-threaded server or a multithreaded server. (Assume that threads

In this problem you are asked to compare the performance of a web-server implemented as a single-threaded server or a multithreaded server. (Assume that threads are supported by the kernel.) For each of the following three problems, explain your answer. Suppose that it takes 15 milliseconds of CPU to get a request for work, dispatch it, and do the rest of the necessary processing, assuming that the data needed are in the main memory. If a disk storage server operation is needed, as is the case for one-third of the requests, an additional 75 millisecond is required, during which time the thread sleeps.

Part A: (5 points) How many requests per second can this server handle if it is single- threaded?

Part B: (5 points) How many requests per second can this web-server handle if it is multi- threaded? Assume that the storage server handles the requests sequentially and for each request it takes 75 milliseconds to complete the I/O.

Part C: (5 points) Now consider a system with a slightly different kind of high performance storage system. Assume that this storage server can handle any number of requests concurrently and each I/O request completes in 75 milliseconds. How many service requests per second can this web server handle if it is multi-threaded?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!