NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: Possible race condition?

On Mon, 07 Mar 2005 08:07:17 -0500, Ed Hill <ed@xxxxxxx> wrote:
> On Mon, 2005-03-07 at 13:00 +0100, yongtao yang wrote:
> > I know this is a very vague message and I might be looking at
> > something totally unirrelevant, just hope somebody has similar
> > experience or know a bit of possible cause.
> 
> Hi Yongtao,
> 
> I think this has been discussed on this list earlier, but to condense:
> 
>  1) the netCDF libs aren't thread-safe and
>  2) you're using OpenMP which is threads-based.
> 
> So take a close look at your code and make sure that you don't have two
> threads (or two MPI processes!) trying to simultaneously write to (or in
> any way modify) the same netCDF file.
> 
> Ed
> 
Hello, Edward

Thank you very much for the reply. The thread-unsafeness of netCDF is
a new information for me and I will check the my code for possible
simultanous access to the netCDF file.

Hopefully I will be able to fix he problem. Thanks again.

-- 
Yongtao Yang

email: yongtao.yang@xxxxxxxxx

  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: