Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-31-2006, 12:07 PM
|
#1
|
|
LQ Newbie
Registered: Apr 2006
Location: Nepal
Distribution: bash46
Posts: 10
Rep:
|
how can two process can be scheduled in two different processor in multi processor ?
is there any command that can schedule different processes to different processor in a multi processor system? Do the command 'ps' does the function.Please help me with this.
|
|
|
|
08-31-2006, 12:47 PM
|
#2
|
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,591
|
The system will automatically schedule work in available processors; there is no user action required or desirable. Manually scheduling work on individual processors only applies to non-symmetrical systems - where different resources are available to each CPU.
|
|
|
|
08-31-2006, 01:05 PM
|
#3
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
pbind is doing that, at least on Solaris. There is also psrset.
|
|
|
|
08-31-2006, 01:50 PM
|
#4
|
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,591
|
This Linux Journal article discusses Linux processor affinity, and provides the source code to a simple tool that will let you bind a process to a given CPU. Unless you have a really good reason to do this, you are much more likely to hinder the system than to help it.
|
|
|
|
08-31-2006, 02:22 PM
|
#5
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
If the requirement is to guarantee CPU resource to a set of privilege processes, a better approach is to use a fair share scheduler http://en.wikipedia.org/wiki/Fair-share_scheduling , Solaris Resource Manager implement that.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:51 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|