4 ms·
the only difference being that on an SMP system, the OS could schedule the thread on a different processor. There's a bit more to it than that. The OS will fr
by nitrogen 15y ago
the only difference being that on an SMP system, the OS could schedule the thread on a different processor.
There's a bit more to it than that. The OS will frequently block and preempt the long-running thread even on a single CPU system, allowing other, shorter requests to be processed in the mean time.
- otterley 15y agoI'm assuming for this example that every request has equal CPU impact. Preempting the running thread in this case won't improve overall request throughput on a single-CPU system. Adding concurrency here will simply increase response latency.