Page 1 of 1

Posix thread support in Z/OS

PostPosted: Fri Oct 12, 2007 5:31 pm
by balaji
Hi,

I have a sample C thread program which calls a thread routine to print a statement alone.
Am now trying to compile it and run as Batch through JCL. But i dont know whether "Posix" thread will be supported by Z/OS that too in a C program since i got stuck while i was trying to compile got compilation erro "Undeclared identifier pthread_t".

So, please pour in your suggestions.

Thanks&Regards,
Balaji

Re: Posix thread support in Z/OS

PostPosted: Tue Jan 27, 2009 8:06 am
by napanap
I've used the pthread functions with no problems. Sounds like you forgot #include <pthread.h>. Also don't forget the POSIX(ON) option.