[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: advanced usage of python threads

Chris Mellon

2/22/2008 7:55:00 PM

On Fri, Feb 22, 2008 at 12:32 PM, hyperboreean
<hyperboreean@nerdshack.com> wrote:
> Well, I will be writing the application server of a three-tier
> architecture system. I will be using Twisted for the communication with
> the client but from there I have to make several calls to a database and
> this asks threading. The tables will be filled by another system that
> gathers some data. I want to implement several threads (workers) that
> takes care of each client and a coordinator thread that takes care of
> all the threads. But I have never worked with threads at this level and
> I feel like I need some coordination. I will be thankful with
> documentation on advanced threads, I probably can apply that in practice.
>
> Thanks to all.


Twisted has an asynchronous database API (built on top of threads)
already. Look at twisted.enterprise.adbapi.