[Twisted-Python] thread migration and bsddb

Bill la Forge laforge49 at yahoo.co.in
Tue May 18 11:54:04 EDT 2004

Thankyou very very much. I had grossly mis-read that page.
This means we can use the regular server threads rather than
a dedicated thread, making for a much cleaner implementation.

Jp Calderone <exarkun at divmod.com> wrote:
Bill la Forge wrote:
> The 040518 release of CompStrm supports the movement of computational 
> streams to a server thread and back to the main thread.
> See http://compstrm.sourceforge.net/thread.html
> Thread migration makes it very easy to do blocking I/O without 
> comprimising the main thread.
> Unfortunatly, this is still not good enough when working with bsddb, as 
> cursors are NOT thread free. To reuse a cursor, you must be on the SAME 
> thread it was created on. ;-(

http://www.sleepycat.com/docs/ref/program/mt.html :

"Transactions and cursors may span threads, but only serially, that 
is, the application must serialize access to the DB_TXN and DBC handles."


Twisted-Python mailing list
Twisted-Python at twistedmatrix.com
Yahoo! India Matrimony: Find your partner online.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20040518/ba33c71a/attachment.htm 

More information about the Twisted-Python mailing list