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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started