Threads

Jerzy Karczmarczuk <[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Organization UCBN
Message-ID <[email protected]>
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.


------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.