Tornado multiple IOLoop in multithreads
问题 I am trying to run multiple IOLoop in multiple threads and I am wondering how the IOLoop actually works. class WebThread(threading.Thread): def __init__(self): threading.Thread.__init__(self, name='WebThread') def run(self): curdir = os.path.dirname(os.path.realpath(__file__)) application = Application() #Very simple tornado.web.Application http_server_api = tornado.httpserver.HTTPServer(application) http_server_api.listen(8888) logging.info('Starting application') #tornado.ioloop.IOLoop