Jeffrey Barish wrote:
[snip]
Lou Pecora wrote:
Try putting a flush in after the 2nd print statement in case the output
is left in some I/O buffer when the thing terminates. e.g.
import sys
try:
print 'in try"
sys.stdout.flush()
I was hoping for some suggestions of things
Lou Pecora wrote:
> In article ,
> "larudwer" wrote:
>
>> "Jeffrey Barish" schrieb im Newsbeitrag
>> news:mailman.2091.1245902997.8015.python-l...@python.org...
>> > Jeffrey Barish wrote:
>> >
>> >> I have a program that uses multithreading to monitor two loops. When
>> >> something happens i
In article ,
"larudwer" wrote:
> "Jeffrey Barish" schrieb im Newsbeitrag
> news:mailman.2091.1245902997.8015.python-l...@python.org...
> > Jeffrey Barish wrote:
> >
> >> I have a program that uses multithreading to monitor two loops. When
> >> something happens in loop1, it sends a message to
"Jeffrey Barish" schrieb im Newsbeitrag
news:mailman.2091.1245902997.8015.python-l...@python.org...
> Jeffrey Barish wrote:
>
>> I have a program that uses multithreading to monitor two loops. When
>> something happens in loop1, it sends a message to loop2 to have it
>> execute
>> a command.
Jeffrey Barish wrote:
Jeffrey Barish wrote:
print "about to try"
try:
print "in try"
As I ponder this problem, I am beginning to believe that the problem is not
related to multithreading. If the problem were due to a collision between
the two threads then timing would matter,
Jeffrey Barish wrote:
> I have a program that uses multithreading to monitor two loops. When
> something happens in loop1, it sends a message to loop2 to have it execute
> a command. loop2 might have to return a result. If it does, it puts the
> result in a queue. loop1, meanwhile, would have
Jeffrey Barish wrote:
> I have a program that uses multithreading to monitor two loops. When
> something happens in loop1, it sends a message to loop2 to have it execute
> a command. loop2 might have to return a result. If it does, it puts the
> result in a queue. loop1, meanwhile, would have b
I have a program that uses multithreading to monitor two loops. When
something happens in loop1, it sends a message to loop2 to have it execute
a command. loop2 might have to return a result. If it does, it puts the
result in a queue. loop1, meanwhile, would have blocked waiting for
something t