Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43363
| Date | 2013-04-11 08:03 -0500 |
|---|---|
| From | Wayne Werner <wayne@waynewerner.com> |
| Subject | Re: Problems with sockets and threads |
| References | <347b9197-b409-4651-8c01-26af4c3461ca@googlegroups.com> <f69b9d77-8615-4d43-9faf-896ddce77f9c@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.469.1365685395.3114.python-list@python.org> (permalink) |
On Thu, 11 Apr 2013, Dexter Deejay wrote: > Yeah, that seems to be problem. Waiting for message is in theory infinite. But why doesn't this separate thread leave processor while it is sleeping? As far as I've been able to tell? Magic ;) But I haven't really dug into it. If you're really doing some waiting stuff you might want to look into some other type of message passing mechanism, e.g. launch a subprocess to do ths listening and then writing to a file and checking that from within Tkinter. I expect there are other possibilities that more advanced people may be able to recommend and are probably better. But that seems like it would work. HTH, -W
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Problems with sockets and threads Dexter Deejay <djdexter1389@gmail.com> - 2013-04-11 05:14 -0700
Re: Problems with sockets and threads Wayne Werner <wayne@waynewerner.com> - 2013-04-11 07:27 -0500
Re: Problems with sockets and threads Dexter Deejay <djdexter1389@gmail.com> - 2013-04-11 05:34 -0700
Re: Problems with sockets and threads Wayne Werner <wayne@waynewerner.com> - 2013-04-11 08:03 -0500
Re: Problems with sockets and threads Dexter Deejay <djdexter1389@gmail.com> - 2013-04-11 06:10 -0700
Re: Problems with sockets and threads Dexter Deejay <djdexter1389@gmail.com> - 2013-04-11 06:11 -0700
Re: Problems with sockets and threads Dexter Deejay <djdexter1389@gmail.com> - 2013-04-11 07:21 -0700
Re: Problems with sockets and threads Peter Otten <__peter__@web.de> - 2013-04-11 16:41 +0200
Re: Problems with sockets and threads Dexter Deejay <djdexter1389@gmail.com> - 2013-04-11 08:39 -0700
Re: Problems with sockets and threads Dexter Deejay <djdexter1389@gmail.com> - 2013-04-11 08:39 -0700
csiph-web