The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can a child process return a specific value to a parent process ? Ametis1970 High Level Programming 8 04-09-2008 08:22 PM
Killing of a process and send a mail if the process doesnot come up within 2 minutes Prince89 Shell Programming and Scripting 1 02-15-2008 03:10 PM
how to start a process and make it sleep for 5 mins and then kill that process shrao Shell Programming and Scripting 6 03-27-2007 09:54 AM
my process is going to sleep mode after 12 hours but i need my process in in firsy pr mukesh_rakesh1 UNIX for Advanced & Expert Users 0 09-04-2006 11:43 PM
script to monitor process running on server and posting a mail if any process is dead pradeepmacha Shell Programming and Scripting 11 07-12-2005 12:49 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-21-2002
Registered User
 

Join Date: Jan 2002
Location: San Francisco
Posts: 4
Stumble this Post!
process -> 1 cpu

Is there a way I can assign processes to different processors? I know in windows xp you can set process affinity, and wondered if there is a *nix equivelant.
__________________
www.massinova.com --||Trancemissions for life||--
Forum Sponsor
  #2 (permalink)  
Old 03-21-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,444
Stumble this Post!
The only unix versions that I work with are HP-UX and SunOS. HP-UX has mpctl(2) and SunOS has processor_bind(2). Both of these calls can bind a thread to a processor.

In unix these days, a process is a collection of threads. And so you could bind several threads of a single process to different cpu's thus allowing them to run simultaneously. Both calls have the ability to bind all threads of a particular process to a cpu. When used this way, they are probably very equivalent to your windows function.

I don't know what the deal is with other versions of unix with respect to cpu binding. I would be interested if anyone else can shed more light.
  #3 (permalink)  
Old 03-21-2002
Registered User
 

Join Date: Jan 2002
Location: San Francisco
Posts: 4
Stumble this Post!
Im using OS X / Darwin and pure darwin. (2 machines)
__________________
www.massinova.com --||Trancemissions for life||--
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:33 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0