- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- int64_t lwp_stat
Operating System - HP-UX
1753974
Members
7046
Online
108811
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
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
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
тАО08-12-2009 08:48 AM
тАО08-12-2009 08:48 AM
int64_t lwp_stat
I'm writing a program on HP-UX 11.11 that lists all of the threads for a given process and displays the stats for each thread. I've been looking through all of the header files and I can't seem find a description of each of the lwp_stat states. When I use pstat_getlwp() to get lwp_stat I get a numeric value. What do each of these numeric values represent? Are these exactly the same pst_stat from pstat_constants.h? I would also like to know what the different lwp_wchan values are? Can someone point me in the right direction here?
- Tags:
- pstat
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 09:45 AM
тАО08-12-2009 09:45 AM
Re: int64_t lwp_stat
Yes, lwp_stat is the same states as pst_stat, it seems. (I agree this is confusing since the header references a "state LWP_SLEEP" -- and there's no such state. I wouldn't be surprised if the intention was to have a set of state constants that mirror the PS_* states but with LWP_ instead and that simply didn't happen with the comments reflecting the original intent).
The lwp_wchan values aren't going to have much meaning to you [other than looking for duplicates which tell you that the LWPs are sleeping on the same resource -- which does have value and may be why this was exported]. Wait channels are kernel internal values and will vary even across reboots, much less boxes. You'd need to use intrusive tools on the running kernel (or later crash dump) to find what a particular wait channel actually means.
The lwp_wchan values aren't going to have much meaning to you [other than looking for duplicates which tell you that the LWPs are sleeping on the same resource -- which does have value and may be why this was exported]. Wait channels are kernel internal values and will vary even across reboots, much less boxes. You'd need to use intrusive tools on the running kernel (or later crash dump) to find what a particular wait channel actually means.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 10:22 AM
тАО08-12-2009 10:22 AM
Re: int64_t lwp_stat
That is exactly what I needed to know. Thanks!
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP