[BangPypers] psphere: how to make thread safe

Ramchandra Apte maniandram01 at gmail.com
Wed Aug 22 14:23:25 CEST 2012


On 22 August 2012 17:15, Saju M <sajuptpm at gmail.com> wrote:

> Hi,
>
> psphere: Python interface for the VMware vSphere Web Services SDK
>
> I already developed an app using https://bitbucket.org/jkinred/psphere.
> But
> getting lot of errors since psphere is not thread safe (I think). So i
> wrote couple of scripts to test it (See attached files) and found that
> caching mechanism used by psphere is not thread safe. Could someone please
> give me some suggestion to make it thread safe.
>
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
> Use locks (this is the *only** *way to make a program thread-safe)


More information about the BangPypers mailing list