Re: multiple readers/multiple writers

Brian Kelley <[email protected]> Mon, 2 Jan 2006 16:54:55 -0500
Newsgroups gmane.comp.db.metakit
Message-ID <[email protected]>
If you are threading with python, you can simply

st = metakit.storage(...)

and share st between threads.  This doesn't work between processes,
but the GIL (global interpreter lock) will automagically lock for you.
 This really means that only one python thread will run at a time when
you are doing metakit stuff, but I haven't found this to be too big of
an issue.

Brian

On 1/1/06, Eric S. Johansson <[email protected]> wrote:
> I'm trying to remember if Metakit handles multiple writers with
> appropriate locking?  The documentation makes it look like it doesn't.
> On the other hand, that could be just a side effect of beating my head
> against Python bsddb and sleepy cat for the past day or so.
>
> ---eric
> _____________________________________________
> Metakit mailing list  -  [email protected]
> http://www.equi4.com/mailman/listinfo/metakit
>
_____________________________________________
Metakit mailing list  -  [email protected]
http://www.equi4.com/mailman/listinfo/metakit