durusmail: quixote-users: Newbie question about threads
Newbie question about threads
2004-11-08
2004-11-08
2004-11-08
2004-11-08
2004-11-08
2004-11-09
2004-11-09
Byte-compyle Python/PTL files (was: Newbie question about threads)
2004-11-10
Newbie question about threads
Neil Schemenauer
2004-11-08
On Mon, Nov 08, 2004 at 02:01:45PM -0800, Mike Orr wrote:
> If I understand right, Twisted's SQL libraries allow the query to
> run while other requests are being handled.

Unless you are waiting on the DB process then it will not help
(unless it also spawns off a thread).  If it uses threads then I
don't see the point of writing an async DB layer.

> It's running on Linux now, but it may have to switch to Windows in
> the future if company policy changes.  So I'd rather have a
> portable solution than a Unix-only one.

I think threads would be your best choice then.  Hopefully we
haven't made your life too difficult.

  Neil

reply