RHEL3 63bit,using openmp, got system error(22)

hx w <[email protected]> Mon, 22 Nov 2004 10:00:04 +0800 (CST)
Newsgroups gmane.linux.redhat.ia64.general
Message-ID <[email protected]>
when i using openmp to parallel my program ,=20

icc -openmp  tect.c

, and run the program: ./a.out
i got the following erros:

system error(22): __kmp_create_monitor: pthread_create
 Invalid argument
abort: fatal problem

My source code:
----------------------------------------------------
#include <stdio.h>
#include "omp.h"

int main()
{
        int nthreads, tid;
	int nprocs;

	char buf[32];

#pragma omp parallel private(nthreads, tid)
	{
		tid =3D omp_get_thread_num();
		printf("omp thread %d\n", tid);

		if (0=3D=3Dtid) {
			nthreads =3D omp_get_num_threads();
			printf("total %d\n", nthreads);
		}
	}
}
----------------------------------------------------

I know the compiler is icc, not gcc. But ,i think the
problem is not about the compiler or my souce, I don't
know clearly if it is just becauce of my operation
system--- RHEL3 64bit, update 2, and how can i do to
resolve the problem.

I installed all the softwares on the 4 RHEL CDs.

Does anyone  meet the same problem as me?Any advices
are welcome~~

Thanks!


_________________________________________________________
Do You Yahoo!?
150=CD=F2=C7=FAMP3=B7=E8=BF=F1=CB=D1=A3=AC=B4=F8=C4=FA=B4=B3=C8=EB=D2=F4=C0=
=D6=B5=EE=CC=C3
http://cn.rd.yahoo.com/mail_cn/tag/yisou/music/*http://music.yisou.com/
=C3=C0=C5=AE=C3=F7=D0=C7=D3=A6=D3=D0=BE=A1=D3=D0=A3=AC=CB=D1=B1=E9=C3=C0=CD=
=BC=A1=A2=D1=DE=CD=BC=BA=CD=BF=E1=CD=BC
http://cn.rd.yahoo.com/mail_cn/tag/yisou/image/*http://image.yisou.com
1G=BE=CD=CA=C71000=D5=D7=A3=AC=D1=C5=BB=A2=B5=E7=D3=CA=D7=D4=D6=FA=C0=A9=C8=
=DD=A3=A1
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mai=
l_1g/