From: Jacob B. <jac...@gm...> - 2012-07-02 12:38:16
|
Hello PyTables Users, I am developing an API to access the current data stored in my pytables instance. Note at this point that this is only reading, no writing to the files. The big question on my mind at this point is how am I supposed to handle the opening and closing of files on read requests that are multithreaded? PyTables supports multithreading for read only; however, I don't know how to handle two threads opening the same file or one thread closing a file while the other is still reading it, besides putting a lock on it thus disabling the multithreaded operations. Thanks, Jacob -- Jacob Bennett Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Class of 2014| ben...@mi... |