Re: help with threads

2009-08-10 Thread Aahz
In article <5a744bd6-6b9a-4f46-97c1-bb7fd65b8...@l5g2000pra.googlegroups.com>, Michael Mossey wrote: > >I have a simple application that needs one thread to manage networking >in addition to the main "thread" that does the main job. It's not >working right. I know hardly anything about threads, s

Re: help with threads

2009-08-08 Thread Michael Mossey
On Aug 7, 5:03 pm, Piet van Oostrum wrote: > > Michael Mossey (MM) wrote: > >MM> Ah yes, that explains it. Some of these long computations are done in > >MM> pure C, so I'm sure the GIL is not being released. > > Is that C code under your own control? Or at least the glue from Python > to C?

Re: help with threads

2009-08-07 Thread Piet van Oostrum
> Michael Mossey (MM) wrote: >MM> Ah yes, that explains it. Some of these long computations are done in >MM> pure C, so I'm sure the GIL is not being released. Is that C code under your own control? Or at least the glue from Python to C? In that case, and if the C code is not manipulating Py

Re: help with threads

2009-08-07 Thread Jean-Michel Pichavant
Michael Mossey wrote: Hello, I have a simple application that needs one thread to manage networking in addition to the main "thread" that does the main job. It's not working right. I know hardly anything about threads, so I was hoping someone could point me in the right direction to research thi

Re: help with threads

2009-08-07 Thread Hendrik van Rooyen
On Friday 07 August 2009 05:02:10 Michael Mossey wrote: > Hello, > My problem is that in some cases, the network thread appears to stop, > while the main thread is doing a long computation. Is this computation done in pure python or are you calling some underlying thing in C? I would be surprise

Re: help with threads

2009-08-06 Thread Michael Mossey
Ah yes, that explains it. Some of these long computations are done in pure C, so I'm sure the GIL is not being released. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: help with threads

2009-08-06 Thread Loïc Domaigné
Hallo Michael, > I have a simple application that needs one thread to manage networking > in addition to the main "thread" that does the main job. It's not > working right. I know hardly anything about threads, so I was hoping > someone could point me in the right direction to research this. > > B

help with threads

2009-08-06 Thread Michael Mossey
Hello, I have a simple application that needs one thread to manage networking in addition to the main "thread" that does the main job. It's not working right. I know hardly anything about threads, so I was hoping someone could point me in the right direction to research this. Basically, I have a