How could I ask Thread B to call B().Method() from inside Thread A's run?

could ildg could.net at gmail.com
Thu Dec 1 02:44:18 CET 2005


Thank you.

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.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051130/7a10484e/attachment.html>


More information about the Python-list mailing list