Dictionary inserts and threads

2007-01-27 Thread Martin P. Hellwig
Hi all, I'm thinking to speed up a process, I like to use multiple threads to get data fractions from multiple servers and place those data fragments into a local dictionary for further processing, the dictionary will look like this: self.dic = {'thread_a':dict(),

Re: Dictionary inserts and threads

2007-01-27 Thread Paul Rubin
Martin P. Hellwig [EMAIL PROTECTED] writes: I assume that this is not a problem, but since assuming something gives a lot of room for screw-ups I rather ask beforehand if I should except all kinds of troubles when multiple threads update 'at the same time' a dictionary or that I should lock