- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Thread question (11i v2)
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
05-31-2004 06:06 PM
05-31-2004 06:06 PM
How to find at run time, whether a running application uses 1x1 or MxN thread model ?
Thanks,
Arun
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 06:41 PM
05-31-2004 06:41 PM
Re: Thread question (11i v2)
The VERSION in the /usr/include/sys/pthreads.h can be used to differentiate between 1x1 or MxN model.
#ifdef PTHREAD_COMPAT_MODE
#define __PTHREAD_LIBRARY_VERSION_1 0x1
#else
#define __PTHREAD_LIBRARY_VERSION_1 0x2
#endif
COMAT mode is 1x1 model.
HTH
manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 06:47 PM
05-31-2004 06:47 PM
Re: Thread question (11i v2)
Thanks for your answer. I want to find whether a running application uses 1x1 thread model or MxN threads on 11iV2. Am i clear with my question?
Thanks,
Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 06:55 PM
05-31-2004 06:55 PM
Re: Thread question (11i v2)
You can use gdb to attach to the process and then print the value of _TALL_1x1. If it is set to 1 then the application is using 1x1 model else it is using MxN model.
manish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 10:16 PM
05-31-2004 10:16 PM
Re: Thread question (11i v2)
Yes, Using gdb would work. Are there any tools like elfdump, odump, nm available with HPUX to find this out ?
Thanks,
Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 10:21 PM
05-31-2004 10:21 PM
Re: Thread question (11i v2)
I am sorry I do not know about any such tool for this :-(.
manish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 10:41 PM
05-31-2004 10:41 PM
Re: Thread question (11i v2)
I have compiled a test program with -DPTHREAD_COMPAT_MODE and tested it with gdb.
After pthread creation, i tried to find symbol _TALL_1x1 using print. It didnt turm out anything.
(gdb) s
[Switching to process 27708]
main () at test.c:17
17 pthread_exit(NULL);
(gdb) p _TALL_1x1
No symbol "_TALL_1x1" in current context.
How to get the symbol information ?
Thanks,
Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2004 10:38 PM
06-02-2004 10:38 PM
Solution_TALL_1x1 is a newly added macro in the latest release. If you are running on earlier release you will not see this and it means that you are running 1x1 model.
There is another variable __MxN which is newly add which can be used to find out whether you are running 1x1 or MxN.
HTH
manish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 02:23 AM
06-03-2004 02:23 AM
Re: Thread question (11i v2)
Which release you are refering to ? LR or IC ?
Thanks,
Arun