[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Support #WTN-189414]: Threading around netcdf4

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [Support #WTN-189414]: Threading around netcdf4
  • Date: Tue, 17 Feb 2009 13:46:02 -0700

Hi Edin,

I think you won't get any concurrency from using netCDF in multiple threads,
even if netCDF-4 was thread-safe, because the underlying HDF5 library
just serializes all the calls with locks for thread safety, so it doesn't
support concurrent access to a single HDF5 file by multiple threads:

  http://www.hdfgroup.uiuc.edu/papers/features/mthdf/

> For your reference I have attached my Read_CDF.c file

Sorry, but we didn't get the attachment.  Is it possible you forgot to attach
it?  But perhaps the above comment on thread safety answers your question so
that we wouldn't need to look at the attachment.

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: WTN-189414
Department: Support netCDF
Priority: Normal
Status: Closed