Posix thread support in Z/OS



Help for C/C++ for MVS, OS/390 C/C++, z/OS C/C++ and C/C++ Productivity Tools for OS/390

Posix thread support in Z/OS

Postby balaji » Fri Oct 12, 2007 5:31 pm

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
balaji
 
Posts: 1
Joined: Fri Oct 12, 2007 5:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Posix thread support in Z/OS

Postby napanap » Tue Jan 27, 2009 8:06 am

I've used the pthread functions with no problems. Sounds like you forgot #include <pthread.h>. Also don't forget the POSIX(ON) option.
napanap
 
Posts: 7
Joined: Tue Jan 27, 2009 7:12 am
Has thanked: 0 time
Been thanked: 0 time


Return to C, C++

 


  • Related topics
    Replies
    Views
    Last post