Skip to content

Instantly share code, notes, and snippets.

@jholster
jholster / gist:2290574
Created April 3, 2012 09:06
Tornado multiprocess example
import tornado.web
import tornado.httpserver
import tornado.ioloop
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Greetings from the instance %s!" % tornado.process.task_id())
app = tornado.web.Application([
(r"/", MainHandler),