CS FundamentalsModerateGATE CS
Requests arrive at a server at 20 per second, and Little's law applies in steady state. If on average 6 requests are in the system, what is the average time a request spends there?
- A. 0.3 s
- B. 3.3 s
- C. 0.12 s
- D. 120 ms per request plus queueing
Correct answer: A. 0.3 s
Little's law: N = λ × W, so W = N / λ = 6 / 20 = 0.3 s. It needs no assumption about the arrival or service distributions.
More Operating Systems questions
- Pages are 4 KB and a process has 3 frames. It runs for (i = 0; i < 1024; i++) for (j = 0; j < 1024; j++) A[i][j] = 0; on an int…
- Which statement about the difference between an unsafe state and a deadlocked state (Banker's algorithm) is correct?
- A 32-bit system uses segmentation with paging. A logical address is (segment s, offset d) with d of 32 bits; within a segment, d is split…
- A thread library offers only kernel-level threads (one-to-one). Which change makes thread creation and switching cheapest without losing…
- A program creates threads with for (i = 0; i < 4; i++) pthreadcreate(&t[i], NULL, work, &i); and each thread reads arg as its index. What…
- In a directory, ln data h and ln -s data s are run, and then mv data data2 renames the original within the same file system. What happens…