Reputation: 3410
Is Tornado using the multiprocessing
module internally? Considering that Tornado, being a web server, needs to handle lots of concurrent requests, I think it makes sense for Tornado to use multiprocessing
and therefore take full advantage of multiple cores.
If not, why not?
Upvotes: 0
Views: 672
Reputation: 226624
It doesn't not use multiprocessing. Instead, it uses non-blocking IO (only one thread and one process). See this blog post for a description of how it works and why it is fast.
Other servers like Gunicorn use separate processes to take advantage of multiple cores.
Upvotes: 1