[667] in Pthreads mailing list archive
pthreads problem on AIX 4.1
daemon@ATHENA.MIT.EDU (Nick Godbey)
Wed Jun 18 17:52:03 1997
Date: Wed, 18 Jun 1997 17:43:39 -0400 (EDT)
From: Nick.Godbey@es.atl.sita.int (Nick Godbey)
To: pthreads@MIT.EDU
having problems running threads on AIX. The following code
produces the following error at runtime. any help would be nice:-).
#include <stdio.h>
#include <string.h>
#include <pthread.h>
void a(int *arg)
{
sleep(1);
printf("Thread A\n");
fflush(stdout);
}
main()
{
pthread_t thread1, thread2;
int e;
printf("Begin\n");
e = pthread_create(&thread1, 0, (void *) a, (void *) &r1);
printf("Pthread_create error = %s\n", strerror(e));
pthread_join(thread1, 0);
printf("End\n");
}
Begin
Pthread_create error = Invalid argument
End
thanx nick