- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: where can I find pthread_attr_create() functio...
Operating System - HP-UX
1821981
Members
3168
Online
109638
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2001 11:28 PM
тАО02-22-2001 11:28 PM
I read materials "programming with threads on HP-UX" they use pthread_attr_create to create attribute object. but I can't find pthread_attr_create in my computer. I use hp11.0 and aCC 3.25. I have pthread lib and pthread.h on my machine. But I can find pthread_attr_create in pthread.h. I don't know where can I find pthread_attr_create() function?
Solved! Go to Solution.
- Tags:
- pthread
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2001 01:25 AM
тАО02-23-2001 01:25 AM
Solution
DCE Pthreads Package
On HP-UX 9.x, DCE pthreads provides the Reentrant C Library (libc_r.a),
the pthreads API based on POSIX.4a draft 4, the signal handling and the
exception handling support. Applications written to DCE Pthreads
link with libc_r.a and libpthreads.a. Applications that are multithreaded
should use cc_r for compiling threaded programs written to DCE pthreads.
On HP-UX 10.x and 11.0, improvements were made to libc so that the Reentrant
C Library (libc_r.a) and cc_r are no longer necessary (they are still
provided for backward compatibility reasons). Compilation and linking can be
accomplished by using the standard cc or c89 and libc.
This table provides a mapping between CMA threads functions and POSIX
threads functions with equivalent functionality. Consult the HP-UX man
pages for function prototype details.
CMA Name Available in POSIX Name
----------------------------------------------------------------------------
atfork libcma only pthread_atfork
hp__pthread_equal libcma only
pthread__cancel_thread libcma only pthread_cancel
pthread_attr_create libcma only pthread_attr_init
pthread_attr_delete libcma only pthread_attr_destroy
pthread_attr_getguardsize_np libcma only pthread_attr_getguardsize
pthread_attr_getinheritsched libcma only pthread_attr_getinheritsched
pthread_attr_getprio libcma only pthread_attr_getschedparam
It would appear they changed its name to pthread_attr_init if I'm interpreting the above correctly ?
On HP-UX 9.x, DCE pthreads provides the Reentrant C Library (libc_r.a),
the pthreads API based on POSIX.4a draft 4, the signal handling and the
exception handling support. Applications written to DCE Pthreads
link with libc_r.a and libpthreads.a. Applications that are multithreaded
should use cc_r for compiling threaded programs written to DCE pthreads.
On HP-UX 10.x and 11.0, improvements were made to libc so that the Reentrant
C Library (libc_r.a) and cc_r are no longer necessary (they are still
provided for backward compatibility reasons). Compilation and linking can be
accomplished by using the standard cc or c89 and libc.
This table provides a mapping between CMA threads functions and POSIX
threads functions with equivalent functionality. Consult the HP-UX man
pages for function prototype details.
CMA Name Available in POSIX Name
----------------------------------------------------------------------------
atfork libcma only pthread_atfork
hp__pthread_equal libcma only
pthread__cancel_thread libcma only pthread_cancel
pthread_attr_create libcma only pthread_attr_init
pthread_attr_delete libcma only pthread_attr_destroy
pthread_attr_getguardsize_np libcma only pthread_attr_getguardsize
pthread_attr_getinheritsched libcma only pthread_attr_getinheritsched
pthread_attr_getprio libcma only pthread_attr_getschedparam
It would appear they changed its name to pthread_attr_init if I'm interpreting the above correctly ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2001 01:40 AM
тАО02-23-2001 01:40 AM
Re: where can I find pthread_attr_create() function?
The book "programming with threads on HP-UX" doesn't apply to HP-UX 11.00's kernel threads which are the default. It is written, as Alex says, to describe the older DCE/CMA package (add flag -D_PTHREADS_DRAFT4 to the compile line and link with -lcma if you want this manual's APIs to appear). Have a look at "man pthread" on 11.00 to see some information about the new kernel threads package (link with -lpthread instead of -lcma for this).
HP's major document for kernel threads is the book mentioned at the end of "man pthread", "ThreadTime" by Norton and Dipasquale. Also, look at the appropriate compiler manuals since they usually have information about the flags to use when compiling for threads. It may also be worth checking out some of the other Unix vendors documentation websites since POSIX threads is pretty standard now and while there may be a few implementation differences between platforms the API descriptions will be relevant.
HP's major document for kernel threads is the book mentioned at the end of "man pthread", "ThreadTime" by Norton and Dipasquale. Also, look at the appropriate compiler manuals since they usually have information about the flags to use when compiling for threads. It may also be worth checking out some of the other Unix vendors documentation websites since POSIX threads is pretty standard now and while there may be a few implementation differences between platforms the API descriptions will be relevant.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP