Hi Christiaan,

A Friday 03 April 2009, Christiaan Putter escrigué:
> Hi guys,
>
> I'm having some issues with multiple threads and pytables.  I have a
> single lock attached to the file and use it when both reading and
> writing to the file.  When I'm only running one thread there aren't
> any  problems, though several threads cause some strange and
> unpredictable behaviour.  It seems to be more stable on linux then
> windows for some reason.
>
> Symptoms include:
> - program crash.  no exceptions. no trace back.  app simply
> disappears - unexpected exceptions
> - write failures
>
>
> It would be nice if someone could advice me on some best practices
> for using threads with pytables.  What should I consider as an
> "atomic" operation from my side?

Yeah.  Seems like you are trying to delete objects from the object tree 
from different threads, and apparently this makes the LRU cache for 
objects to choke.

Mmh, how are you locking your file?  It would help a lot if you can 
provide a small script that exposes the problem.

Cheers,

-- 
Francesc Alted

"One would expect people to feel threatened by the 'giant
brains or machines that think'.  In fact, the fightening
computer becomes less frightening if it is used only to
simulate a familiar noncomputer."

-- Edsger W. Dykstra
   "On the cruelty of really teaching computer science"

------------------------------------------------------------------------------
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to