How could I ask Thread B to call B().Method() from inside Thread A's run?
could.net at gmail.com
Thu Dec 1 02:44:18 CET 2005
On 30 Nov 2005 09:30:23 -0800, NavyJay <gaudetteje at gmail.com> wrote:
> I agree with jmj's solution, you would want to send a signal of some
> sort to Thread B from A when some event occurs in A. A queue is one
> way to do it, but keep in mind that there are numerous ways to
> communicate between threads/processes (queue, pipe, exit status,
> TCP/UDP message, etc.). I believe one of the first couple chapters in
> O'Reilly's "Programming Python" book discusses most of these methods.
> Choose the simplest one that meets your needs.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list