asked 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?

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
answered
User Charbel
by
7.2k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.

Categories