Re: A beginner's question on thread

From: Timothy Wu (huggiepython_at_graffiti.idv.tw)
Date: 04/06/04


Date: Tue, 06 Apr 2004 18:00:33 +0800
To: python-list@python.org

Aurelio Martin wrote:

> Well, when the user wants to exit, the main thread could open a socket
> connection to the server thread, and send a special message telling it
> to stop.
>
> The server thread would have to distinguish between normal connections
> from clients and special connections from the main thread.
>
> Hope this helps
>
> Aurelio

I've thought about doing that and I thought that was more of a hack.
Is it the proper way to handle it?

Timothy