89.7k views
7 votes
A server accepts and processes requests from clients. The server keeps the results of the most recent requests in memory as a cache. The processing of each request takes 15 ms.

If the requested result is not in the memory cache, additional 75 ms are needed to access the disk.
On average, 80% of all requests can be serviced without disk access. The creation of a new thread takes 10 ms.
(a) To minimize average response time, should the server be implemented as a single-threaded or a multi-threaded process? Justify your answer.
(b) What percentage of requests would have to be satisfied without disk access for the two approaches to break even?

User David Wick
by
4.2k points

1 Answer

10 votes
In question (A) my answer would be a multi-
stranded process as in terms of time reduction
many configurations can be used because there is a feature to do multiple tasks at once.

In Question (B) In my opinion 80% of all
applications can be used without disk access
User Charbel
by
3.9k points