Skip to content
‹ 30-Day Drill

Day 10: Five Times Slower, With the Processor Half Idle

Illustrative interview practice. Generic company names and hostnames do not represent any specific organization.

Scenario

Interviewer A service's processor is 35% used and its memory 60% used. Nothing was released. Yet most requests now take 600 milliseconds where they took 120. What is happening?

In plain words

The two numbers people look at first say the computer has plenty to spare. Even so, every user is waiting five times longer. The question asks where that extra time is going.

You are expected to say that a request can be slow without using the processor, list the usual places it waits, and name a check for each.

Words you need

WordWhat it means
LatencyHow long one request takes from start to finish. It is a length of time, not a count.
ThreadOne worker inside a program. Each worker handles one request at a time.
PoolA fixed number of workers, or of database connections, shared by all requests.
DependencyAnother service this one has to call to do its job, such as a database.
LockA rule that only one worker at a time may touch a piece of shared data. The others wait.

Your answer

2:00

Observe → Hypothesise → Investigate → Mitigate → Prevent. The timer is optional; your answer is not auto-submitted.

0 / 20,000 characters · Not saved
Sign in to save