atom feed21 messages in org.python.tutor[Tutor] sockets, files, threads
FromSent OnAttachments
Marilyn DavisJan 13, 2005 2:04 am 
Danny YooJan 13, 2005 2:31 am 
Danny YooJan 13, 2005 2:41 am 
Marilyn DavisJan 13, 2005 3:17 am 
Danny YooJan 13, 2005 6:29 am 
Alan GauldJan 13, 2005 10:20 am 
Marilyn DavisJan 15, 2005 11:19 pm 
Marilyn DavisJan 16, 2005 3:12 am 
Marilyn DavisJan 16, 2005 6:47 am 
Danny YooJan 16, 2005 7:40 am 
Marilyn DavisJan 17, 2005 5:02 am 
Danny YooJan 18, 2005 10:51 am 
Danny YooJan 18, 2005 7:24 pm 
Marilyn DavisJan 19, 2005 2:32 am 
Danny YooJan 19, 2005 8:12 am 
Kent JohnsonJan 19, 2005 12:35 pm 
Marilyn DavisJan 19, 2005 8:57 pm 
Marilyn DavisJan 19, 2005 9:13 pm 
Danny YooJan 19, 2005 9:53 pm 
Marilyn DavisJan 19, 2005 10:28 pm 
Marilyn DavisJan 21, 2005 5:05 am 
Subject:[Tutor] sockets, files, threads
From:Danny Yoo (dy@hkn.eecs.berkeley.edu)
Date:Jan 13, 2005 2:41:55 am
List:org.python.tutor

Just double checking something: are you dealing with threads?

Hi Marilyn,

Argh, that was a dumb question. Pretend I didn't ask it that way. *grin*

I meant to ask:

How do you deal with threads? Is the temporary file a global resource that the threads all touch? If so, have you done any synchronization to make sure that at most one thread can touch the temporary file at a time? What are the shared resources for the threads?

The situation you mentioned,

Worse yet, the first 5 messages of my test go through the entire process without a problem, and then # 6 hits this -- but only if # 1 message is really big.

is exactly the sort of thing I'd expect if two threads were contending for the same resource, so let's see if the bug has to do with this.

Best of wishes to you!