A little threading problem
From: Alban Hertroys (alban_at_magproductions.nl)
Date: 12/01/04
- Next message: Benjamin Rutt: "Re: pdb with emacs"
- Previous message: Ville Vainio: "Re: Semaphore or what should I use?"
- Next in thread: Alban Hertroys: "Re: A little threading problem"
- Maybe reply: Alban Hertroys: "Re: A little threading problem"
- Maybe reply: Alban Hertroys: "Re: A little threading problem"
- Maybe reply: Jeremy Jones: "Re: A little threading problem"
- Maybe reply: Alban Hertroys: "Re: A little threading problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 01 Dec 2004 16:11:24 +0100
Hello all,
I need your wisdom again. I'm working on a multi-threaded application
that handles multiple data sources in small batches each time. The idea
is that there are 3 threads that run simultaneously, each read a fixed
number of records, and then they wait for eachother. After that the main
thread does some processing, and the threads are allowed to continue
reading data.
I summarized this part of the application in the attached python script,
which locks up rather early, for reasons that I don't understand (I
don't have a computer science education), and I'm pretty sure the
problem is related to what I'm trying to fix in my application. Can
anybody explain what's happening (Or maybe even show me a better way of
doing this)?
Regards,
Alban Hertroys,
MAG Productions.
- text/x-python attachment: multithreading.py
- Next message: Benjamin Rutt: "Re: pdb with emacs"
- Previous message: Ville Vainio: "Re: Semaphore or what should I use?"
- Next in thread: Alban Hertroys: "Re: A little threading problem"
- Maybe reply: Alban Hertroys: "Re: A little threading problem"
- Maybe reply: Alban Hertroys: "Re: A little threading problem"
- Maybe reply: Jeremy Jones: "Re: A little threading problem"
- Maybe reply: Alban Hertroys: "Re: A little threading problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]