3 ms·
> Every concurrent request gets its own thread, whereas this seems to be one thread per core. No. Servlet containers use a thread pool (that grows and shrinks
by pron 15y ago
> Every concurrent request gets its own thread, whereas this seems to be one thread per core.
No. Servlet containers use a thread pool (that grows and shrinks dynamically).
- pivo 15y agoThere's really no conflict between the statement, "every request gets it's own thread" and the use of thread pools. The point is that a given request in a servlet container is handled in it's own thread. That thread will probably come from a pool and be reused to handle another request of course, but that's sort of immaterial.