|
Sun Ying
mail.suny at gmail.com
Wed Sep 14 06:47:01 EDT 2005
import threading
from mylogger import mylogger
class TestThread(threading.Thread):
def __init__(self.**kwds):
threading.Thread.__init__(self)
def run(self):
mylogger.info("TestThread into running state")
def webtest(req):
req.content_type="text/html"
tt = TestThread()
tt.start()
req.write("<H1>OK</H1>")
TestThread's run() is never executed ... what's wrong with the configuration?
Does mod_python support multi-threaded program?
|