- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: C 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-06-2002 04:08 AM
08-06-2002 04:08 AM
C Programming question
I want my (user) process to be attached to a specific processor in a multiprocessor system (4 CPUs). If I have 3 processes (p1, p2, p3) and CPUs (c1, c2, c3, c4), I want process p1 to run only on c1, p2 on c2 etc.
Is this possible? Any kind of pointers will help me. Thank you in advance.
Arun.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 04:30 AM
08-06-2002 04:30 AM
Re: C Programming question
There are some openview tools from hp which can allocate some amount of % usage of CPU to a process or user.
The tool is the Process Resource Manager.
Just find some information at
http://docs.hp.com/hpux/onlinedocs/B8733-90007/B8733-90007.html
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 04:31 AM
08-06-2002 04:31 AM
Re: C Programming question
pthread_processor_bind_np(3T) pthread_processor_bind_np(3T)
Pthread Library
NAME
pthread_num_processors_np(), pthread_processor_bind_np(),
pthread_processor_id_np() - determine how many processors are
installed in the system, bind threads to processors, and determine
processor IDs; respectively.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 05:06 AM
08-06-2002 05:06 AM
Re: C Programming question
Some code was posted a while back that may do what you want:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xdcbb3a7b3682d611abdb0090277a778c,00.html
If the link doesn't work, search the forums on 11i mpctl.
-Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 05:21 AM
08-06-2002 05:21 AM
Re: C Programming question
http://support4.itrc.hp.com/service/patch/patchDetail.do?patchid=PHKL_24578&context=hpux:800:11:11
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 06:39 AM
08-06-2002 06:39 AM
Re: C Programming question
$ mpsched -c1 ./p1
This will bind the p1 command to SPU 1. Remember the SPU numbers start at 0.
See the man page for more info.
Regards,
Steve