Operating System - Linux
1748259 Members
4064 Online
108760 Solutions
New Discussion юеВ

Re: Are there any differences between thread_create() and pthread_create() in C?

 
SOLVED
Go to solution
MA Qiang
Regular Advisor

Are there any differences between thread_create() and pthread_create() in C?

Why I can not issue 'man thread_create' in HP-UX?

Thanks.
4 REPLIES 4
Stephen Keane
Honored Contributor
Solution

Re: Are there any differences between thread_create() and pthread_create() in C?

pthread_create refers to POSIX threads. The orginal threading model on HP didn't use Posix thraeds, it used DCE threads. To differentiate between the old (DCE) threads and the new (Posix) threads, HP uses pthread_create() and the pthread library.
MA Qiang
Regular Advisor

Re: Are there any differences between thread_create() and pthread_create() in C?

Thanks for your reply.

Can I get the man page for thread_create on HP-UX?

Regards.
Stephen Keane
Honored Contributor

Re: Are there any differences between thread_create() and pthread_create() in C?

Which version of HPUX are you using? If you are running 11.* then you really should be using pthreads.
Alessandro Pilati
Esteemed Contributor

Re: Are there any differences between thread_create() and pthread_create() in C?

Here it is a man for thread_create...
http://support.alphasoftware.com/alphafivehelp/Functions/THREAD_CREATE().htm

and the man page of pthread_create for hpux 11i versions...
http://docs.hp.com/en/B3921-90010/pthread_create.3T.html

Regards,
Alex
if you don't try, you'll never know if you are able to