- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: pthread programming question
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
08-23-2002 10:07 AM
08-23-2002 10:07 AM
pthread programming question
First off, sorry if this is the wrong place for asking. Please let me know where is a better place to ask if this is the case.
I am trying to determine if a thread has run using platform dependent calls and the pthread api. I start with a pthread. All I need is a pd thread call that would return an associated kernel thread from the pthread I give, then an np (non portable) call to gather the thread usage for that particular thread from the kernel stand point (has it been schedule and/or for how long, thread status, etc...). Things like that can be found in the kernel thread context usually.
Thanks for your help in advance.
LdS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 09:03 AM
08-26-2002 09:03 AM
Re: pthread programming question
You can get much information about each lwp with the pstat_getlwp() function.
Be aware that their may not be a one-to-one mapping between pthread and lwp. Starting with the 11.22 release, there will be support for PTHREAD_SCOPE_PROCESS in pthread_attr_setscope(), so multiple pthreads may share a small pool of lwps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 09:24 AM
08-26-2002 09:24 AM
Re: pthread programming question
Thanks for the answer. I was not aware about lwp processes on HP-UX. Are they equivalent/compatible with lpw on Solaris. Any pointer to lwp documentation on HP-UX is greatly appreciated.
TIA,
LdS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2002 07:29 PM
08-29-2002 07:29 PM
Re: pthread programming question
White Paper" at
http://docs.hp.com/hpux/onlinedocs/5965-4642/5965-4642.html
The document dates back to HP-UX 10.30 five years ago. The threading model hasn't really changed except for the recent 11.22 implementation of the MxN model described there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 03:47 PM
09-13-2002 03:47 PM
Re: pthread programming question
Thanks for your help in advance,
LdS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2002 07:04 AM
09-14-2002 07:04 AM
Re: pthread programming question
live free or die
harry