From: John M. <joh...@ya...> - 2001-03-22 16:34:45
|
I'm able to avoid the problem now. I added a sleep(5) after I instantiate each thread. This is apparently an old problem with thread initialization clashing. --- John Mudd <joh...@ya...> wrote: > I added a simple call to sleep(2) in the run() mathod of some > threads. > The threads now terminate (w/o exception) when the sleep() is > reached. > It's not a critical problem for me. I was just using the sleep() > during debugging. > > > I get the problem when using either Jython 2.0 or 2.1.a1. > > > Here are the only references to sleep() in my program. So I don't > think I've redefined it. > > $ grep sleep conv.py > from time import time, localtime, sleep > sleep(2) > $ > > > > I tried a small test program (attached) but it works as it should. > So > it's something to do with my application. > > I tried "import time" and calling time.sleep(2) instead of sleep(2) > but > that didn't help. > > I tried printing the value of `sleep` before calling it. I got the > same sort of output from both my application that has the problem and > and test program that runs okay. Here's an example: > > sleep=<java function sleep at 1203696510> > > Any suggestions? > > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ > ATTACHMENT part 2 application/x-unknown name=sleepBug.py __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |