LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 08-31-2006, 01:07 PM   #1
bishalpoudyal
LQ Newbie
 
Registered: Apr 2006
Location: Nepal
Distribution: bash46
Posts: 10
Blog Entries: 2
Thanked: 0
how can two process can be scheduled in two different processor in multi processor ?


[Log in to get rid of this advertisement]
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.
bishalpoudyal is offline  
Tag This Post , ,
Reply With Quote
Old 08-31-2006, 01:47 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86, x86_64, PPC
Posts: 3,543
Blog Entries: 1
Thanked: 0
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.
macemoneta is offline     Reply With Quote
Old 08-31-2006, 02:05 PM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris, under a rock ...
Distribution: Solaris & OpenSolaris based distros, Ubuntu
Posts: 8,134
Thanked: 86
pbind is doing that, at least on Solaris. There is also psrset.
jlliagre is online now     Reply With Quote
Old 08-31-2006, 02:50 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86, x86_64, PPC
Posts: 3,543
Blog Entries: 1
Thanked: 0
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.
macemoneta is offline     Reply With Quote
Old 08-31-2006, 03:22 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris, under a rock ...
Distribution: Solaris & OpenSolaris based distros, Ubuntu
Posts: 8,134
Thanked: 86
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.
jlliagre is online now     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Linux on a dual processor machine (only one processor detected) rocordial Linux - Hardware 1 11-27-2004 03:16 AM
Multi Processor System? ssnkumar Linux - Software 3 04-02-2004 04:44 AM
Multi Processor system? ssnkumar Linux - General 3 04-02-2004 04:43 AM
xinetd 100% utilization on one processor on a two processor system red hat 9 garnold Linux - General 0 02-02-2004 02:47 PM
Multi processor operating systems norfarm Linux - General 5 08-21-2002 06:08 PM


All times are GMT -5. The time now is 05:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration