Tornado ioloop + thread
1 answer
The vast majority of Tornado applications should have only one IOLoop running on the main thread. You can run multiple HTTPServers (or other servers) on the same IOLoop.
It is possible to create multiple IOLoops and give each one their own thread, but this is rarely useful because the GIL ensures that only one thread is started at a time. If you are using multiple IOLoops, you have to be careful that different threads only communicate with each other using thread-safe methods (e.g. IOLoop.add_callback).
+3
source to share