[Nexus-developers] Thread-safety of HDF5, NeXus

freddie.akeroyd at stfc.ac.uk freddie.akeroyd at stfc.ac.uk
Wed Feb 15 19:31:04 GMT 2012


Hi Janik,

NeXus 4.3.0 (currently at rc2) implements its own HDF5 thread safety via pthreads / Windows Critical sections, so you will be able to use either thread safe or non thread safe HDF5 from a multi-threaded program. NeXus basically protects all HDF5 calls with a global lock, which doesn't allow any concurrency, but my understanding of the current thread safety in HDF5 is that it doesn't yet either; we may need to revisit this if things change in HDF5  

Regards,

Freddie 

> -----Original Message-----
> From: nexus-developers-bounces at nexusformat.org [mailto:nexus-
> developers-bounces at nexusformat.org] On Behalf Of Zikovsky, Janik L.
> Sent: 15 February 2012 19:03
> To: nexus-developers at nexusformat.org
> Subject: [Nexus-developers] Thread-safety of HDF5, NeXus
> 
> Hello,
> 
> I just found out that the usual binaries of HDF5 are NOT thread-safe
> even when accessing DIFFERENT files from separate threads in the same
> process. However, the HDF libraries CAN be built in a thread-safe way:
> http://www.hdfgroup.uiuc.edu/papers/features/mthdf/index.html
> 
> My question is: does NeXus use the thread-safe version of HDF5 (I
> suspect no)? And if not, can it?
> 
> Thanks!
> 
> Janik Zikovsky
> Scientific Data Analysis Group, Spallation Neutron Source
> 
> _______________________________________________
> NeXus-developers mailing list
> NeXus-developers at nexusformat.org
> http://lists.nexusformat.org/mailman/listinfo/nexus-developers
-- 
Scanned by iCritical.



More information about the NeXus-developers mailing list