Psycopg and threads problem
alban at magproductions.nl
Tue Sep 21 15:55:36 CEST 2004
Ken Godee wrote:
> I would probally pass a queue instance to the worker threads
> and in the main thread create a timer method/function that periodically
> checks the queue.
> When the worker thread is done doing its thing, do a commit and
> When the main thread checks the queue.get(0) = 'done'
> have it do it's thing.
> This is the beauty of queues.
Apparently I missed the point of queues. I will have a look at them again.
Thread programming makes twisted minds, I suspect. ;)
More information about the Python-list