On Thu, Jul 28, 2011 at 11:13 AM, Danny Wong (dannwong)
wrote:
> Hi Python experts,
> I'm trying to use a dict structure to store and update information
> from X number of threads. How do I share this dict structure between threads?
> I heard of using a queue, but I'm not familiar with ho
Hi Python experts,
I'm trying to use a dict structure to store and update information from
X number of threads. How do I share this dict structure between threads? I
heard of using a queue, but I'm not familiar with how it works. Does anyone
have an example of using a queue to store vari
Tim Arnold wrote:
"Jan Kaliszewski" wrote in message
news:mailman.895.1251958800.2854.python-l...@python.org...
06:49:13 Scott David Daniels wrote:
Tim Arnold wrote:
(1) what's wrong with having each chapter in a separate thread? Too
much going on for a single processor?
Many more threads
"Jan Kaliszewski" wrote in message
news:mailman.895.1251958800.2854.python-l...@python.org...
> 06:49:13 Scott David Daniels wrote:
>
>> Tim Arnold wrote:
>
>>> (1) what's wrong with having each chapter in a separate thread? Too
>>> much going on for a single processor?
>
>> Many more threads t
06:49:13 Scott David Daniels wrote:
Tim Arnold wrote:
(1) what's wrong with having each chapter in a separate thread? Too
much going on for a single processor?
Many more threads than cores and you spend a lot of your CPU switching
tasks.
In fact, python threads work relatively the best
Tim Arnold wrote:
"MRAB" wrote in message
news:mailman.835.1251886213.2854.python-l...@python.org...
I don't need that many threads; just create a few to do the work and let
each do multiple chapters, something like this:
a very pretty implementation with worker code:
while True:
"MRAB" wrote in message
news:mailman.835.1251886213.2854.python-l...@python.org...
> Tim Arnold wrote:
>> Hi, I've been using the threading module with each thread as a key in a
>> dictionary. I've been reading about Queues though and it looks like
>> that's what I should be using instead. Jus
Tim Arnold wrote:
Hi, I've been using the threading module with each thread as a key in a
dictionary. I've been reading about Queues though and it looks like that's
what I should be using instead. Just checking here to see if I'm on the
right path.
The code I have currently compiles a bunch of
Hi, I've been using the threading module with each thread as a key in a
dictionary. I've been reading about Queues though and it looks like that's
what I should be using instead. Just checking here to see if I'm on the
right path.
The code I have currently compiles a bunch of chapters in a book
On Jul 4, 11:24 am, Peter Otten <__pete...@web.de> wrote:
> Icarus wrote:
> > On Jul 4, 3:21 am, Peter Otten <__pete...@web.de> wrote:
> >> Icarus wrote:
> >> > I'm working on a serial protocol analyzer in python. We have an
> >> > application written by someone else in MFC but we need something t
Icarus wrote:
I'm working on a serial protocol analyzer in python. We have an
application written by someone else in MFC but we need something that
is cross platform. I intended to implement the GUI portion in Tkinter
but am having trouble.
The idea is that I will read messages from the serial
Icarus wrote:
> On Jul 4, 3:21 am, Peter Otten <__pete...@web.de> wrote:
>> Icarus wrote:
>> > I'm working on a serial protocol analyzer in python. We have an
>> > application written by someone else in MFC but we need something that
>> > is cross platform. I intended to implement the GUI portio
On Jul 4, 3:21 am, Peter Otten <__pete...@web.de> wrote:
> Icarus wrote:
> > I'm working on a serial protocol analyzer in python. We have an
> > application written by someone else in MFC but we need something that
> > is cross platform. I intended to implement the GUI portion in Tkinter
> > but
Icarus wrote:
> I'm working on a serial protocol analyzer in python. We have an
> application written by someone else in MFC but we need something that
> is cross platform. I intended to implement the GUI portion in Tkinter
> but am having trouble.
>
> The idea is that I will read messages from
I'm working on a serial protocol analyzer in python. We have an
application written by someone else in MFC but we need something that
is cross platform. I intended to implement the GUI portion in Tkinter
but am having trouble.
The idea is that I will read messages from the serial port and output
15 matches
Mail list logo