- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- is thread alive ?
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
Forums
Discussions
Discussions
Discussions
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
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
09-17-2007 06:00 PM
09-17-2007 06:00 PM
is thread alive ?
Is there a API in pthread to get the state of the thread on hp-ux ?
State of the thread I meant by what time the thread started, whether the
thread still exists.
I could find pstat_getlwp but it would take lwpid as the argument ? any
alternatives of converting a pthread_t to lwp willalso help ..
regards
Shankar K E
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 07:27 PM
09-17-2007 07:27 PM
Re: is thread alive ?
http://docs.hp.com/en/B2355-60130/pthread_kill.3T.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 07:32 PM
09-17-2007 07:32 PM
Re: is thread alive ?
Thanks for the reply.
But if the pthread_id gets reused then I have to use the
start time of the thread, is there an API to do that in
the pthread library ?
Thanks
Shankar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 07:49 PM
09-17-2007 07:49 PM
Re: is thread alive ?
In a simple case I tried, I didn't see any reuse of the thread id but I don't think that is guaranteed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 08:17 PM
09-17-2007 08:17 PM
Re: is thread alive ?
pstat_getlwp returns a very good piece of information, is there any in the same manner of pthread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 09:08 PM
09-17-2007 09:08 PM
Re: is thread alive ?
You need to remember all of the threads you created and make sure you remove the ones that die.