From: Jerzy K. <jer...@un...> - 2011-11-01 23:40:19
|
Does anybody has some experience with multithreading and VPython? Standard examples are silent, the tutorial just mentions that the rendering thread is separate I did some simple tests (with the threading module without any locks, some "planets" wandering concurrently on the screen), no serious problems, but if somebody tried some torture example, and noticed something, I would be grateful to know. I noticed something I cannot interpret. Two objects move, and two loops running in different threads execute time.sleep(slp). Nothing wrong. I replace the sleeping by rate(1.0/slp), and the second thread waits until the first terminates. Why? Maestro Bruce? All the best. Jerzy Karczmarczuk Caen, France. |