- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- pthread_create
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
тАО08-29-2007 07:41 PM
тАО08-29-2007 07:41 PM
pthread_create
My application fails because pthread_create is failing with a return value 22.
Can any one help me for same...
Thanks in Advance.
Regards,
Subrat
- Tags:
- pthread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2007 08:12 PM
тАО08-29-2007 08:12 PM
Re: pthread_create
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2007 09:00 PM
тАО08-29-2007 09:00 PM
Re: pthread_create
http://docs.hp.com/en/1896/pthreads.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2007 09:45 PM
тАО08-29-2007 09:45 PM
Re: pthread_create
I am using -lpthread and not -lc for link.
my appliction is not stop in first time.some time after error is comming and its stop.
Hi Awadhes,
I can't understand what you said exectly about pthread_mutex_lock stub returns zero .
Please explain.
Thanks
Regards,
Subrat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2007 10:11 PM - edited тАО09-28-2013 02:49 PM
тАО08-29-2007 10:11 PM - edited тАО09-28-2013 02:49 PM
Re: pthread_create
>I am using -lpthread and not -lc for link.
You need to make sure that none of the shlibs you use are linked with -lc either. Try ldd on your application.
>I can't understand what you said exactly about pthread_mutex_lock stub returns zero.
He means if you have your shlibs in the wrong order, you're hosed. See the link Awadhesh mentions.
Hmm, this may be all wrong. That errno 22 is related to shl_load.
If you are calling pthead_create and you have the wrong order, you get ENOSYS, 251.
Basically you get 22, EINVAL, by:
invalid thread attributes
The value specified by thread is invalid.
The scheduling policy or scheduling attributes
You need to look at your parms closely. Try replacing your attributes by NULL and check again.