|
From: Salman T. <sal...@gm...> - 2007-01-12 17:13:20
|
Hi
I am using webkit and my application supposed to launch 5 threads and
wait until all 5 will be finished. But when i run the code first it
hangs the Application server and then, even I can not stop or restart
the application server.
What is the proper way of using multi threaded application within WebKit.
for example:
# define a class that subclasses Thread
class showTime(threading.Thread):
# define instance constructor
def __init__(self,interval,id):
self.w = interval
self.id = id
threading.Thread.__init__(self) # we are required to this
# define run method (body of the thread)
def run(self):
time.sleep(self.w)
print "thread", self.id, "done at", time.ctime(time.time())
how do i start the threads so that it can finish successfully and i
can shutdown my server and can restart it.
Its my first time to use threads with WebKit.
Thankz in advance....
Best Regards....
Salman Toor.
|