On 22 August 2012 17:53, Ramchandra Apte <maniandra...@gmail.com> wrote:
> On 22 August 2012 17:15, Saju M <sajup...@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@python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> >> Use locks (this is the *only** *way to make a program thread-safe) Use locks on the cache. _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers