2 ms·
That's not fine, because processing a single request often involves waiting on some I/O, and the thread can service (a part of) another request in the meantime.
by int_19h 8y ago
That's not fine, because processing a single request often involves waiting on some I/O, and the thread can service (a part of) another request in the meantime. Which is what modern event loop driven servers do - but this doesn't play well with thread locals, or abstractions implemented on top of them, because now your single physical thread effectively runs multiple cooperatively scheduled logical threads/requests.