multithread about HDF fail

HI ALL: I have a program: it will create 10 threads to read and write 10 file at same time. You can see the attachment that include the source code. Sometimes ,it work will.But , it alway report "section error". Thank you for any advice. My enviroment: linux ubuntu 9.0. HDF:hdf5-1.8.5-linux-staticHdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

createHdf.cpp (3.51 KB)

Hi,

···

On Jul 4, 2010, at 1:08 AM, 张廼强 wrote:

HI ALL:
    I have a program: it will create 10 threads to read and write 10 file at same time. You can see the attachment that include the source code.
    Sometimes ,it work will.But , it alway report "section error".
    Thank you for any advice.
     My enviroment: linux ubuntu 9.0.
     HDF:hdf5-1.8.5-linux-static
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

  Are you using a version of the HDF5 library that has been built with the "--enable-threadsafe" configure flag?

  Quincey

HI Quincey Koziol:
Thank you for your help.Today , I have resolve this problem through --enable-threadsafe. But I found , the --enable-threadsafe is incompatilbe --enable-cxx in IA 64-LINUX-SYSTEM. but it good for linux-32bit. So,I write C program for IA64-linux-SYSTEM.

--- 10年7月6日,周二, Quincey Koziol <koziol@hdfgroup.org> 写道:

···

发件人: Quincey Koziol <koziol@hdfgroup.org>
主题: Re: [Hdf-forum] multithread about HDF fail
收件人: "HDF Users Discussion List" <hdf-forum@hdfgroup.org>
日期: 2010年7月6日,周二,下午8:23

Hi,
On Jul 4, 2010, at 1:08 AM, 张廼强 wrote:
HI ALL: I have a program: it will create 10 threads to read and write 10 file at same time. You can see the attachment that include the source code. Sometimes ,it work will.But , it alway report "section error". Thank you for any advice. My enviroment: linux ubuntu 9.0. HDF:hdf5-1.8.5-linux-staticHdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

  Are you using a version of the HDF5 library that has been built with the "--enable-threadsafe" configure flag?
  Quincey

-----下面为附件内容-----

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org