[Twisted-Python] Threading examples...
William McLendon
wcmclen at hotmail.com
Tue Mar 23 14:19:01 EST 2004
Hi,
I'm trying out some of the threading examples from the web and am getting
some a lockup at the end.
Here's the code I'm playing with, I pulled it straight from the examples:
(source:
http://twisted.sourceforge.net/TwistedDocs-1.2.0/howto/threading.html)
#!/usr/bin/env python
import time
from twisted.internet import reactor
def aSillyBlockingMethod(x):
import time
time.sleep(2)
print x
# run method in thread
reactor.callInThread(aSillyBlockingMethod, "2 seconds have passed")
Is there something I need to do that will make the thread go away? Are
there some more examples of threading in Twisted-Python available?
Thanks,
-William
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
More information about the Twisted-Python
mailing list