LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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


Reply
  Search this Thread
Old 08-31-2006, 12:07 PM   #1
bishalpoudyal
LQ Newbie
 
Registered: Apr 2006
Location: Nepal
Distribution: bash46
Posts: 10
Blog Entries: 2

Rep: Reputation: 0
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.
 
Old 08-31-2006, 12:47 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
Old 08-31-2006, 01:05 PM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
pbind is doing that, at least on Solaris. There is also psrset.
 
Old 08-31-2006, 01:50 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
Old 08-31-2006, 02:22 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
  


Reply

Tags
multi, processing, processor



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 02:16 AM
Multi Processor System? ssnkumar Linux - Software 3 04-02-2004 03:44 AM
Multi Processor system? ssnkumar Linux - General 3 04-02-2004 03:43 AM
xinetd 100% utilization on one processor on a two processor system red hat 9 garnold Linux - General 0 02-02-2004 01:47 PM
Multi processor operating systems norfarm Linux - General 5 08-21-2002 05:08 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:53 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration