Psycopg and threads problem
alban at magproductions.nl
Tue Sep 21 09:55:36 EDT 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