Binding a process to a specifc processor.

From: Brian D. McGrew (brian_at_doubledimension.com)
Date: 10/29/03


Date: 29 Oct 2003 10:03:23 -0800

Good morning and greetings from San Diego; I hope this is the right
group to post this request in.

We're using Redhat 7.3, kernel 2.4.20-SMP_i686, glibc 2.2.5. Now,
here's where it gets sticky. We' write custom software to talk to our
machines. In our software, there are several different programs (and
processes) that run. For instance, we have a barcode process, an
inspecter process, a material handling process, etc.

The issue that we're having is that when we start our main program, it
starts all of the sub processes and they get assigned to a processor
at random (dual processors). I need to know, if there is a way to
assign a specific program to a specific process. We're using C++,
gcc-3.2.

Again, we start our main program (which is called ui 'user interface')
and it in turn starts eight different progrrams. I need to be able to
assign these programs to a specific processor. Reason being, when
these programs are running, they pass messages back and forth and on a
dual processor system, our messages are getting clobbered. Of course,
on a single processor system, life is good.

Any help would be great, or you can just point me off in the right
direction. If I can't get some help pretty quick (like within a few
hours) I'm going to have to resort to using a MySQL database for
passing messages around.

Thanks in advance.

-brian
brian@doubledimension.com



Relevant Pages

  • Binding a process to a specifc processor.
    ... here's where it gets sticky. ... We' write custom software to talk to our ... at random (dual processors). ... dual processor system, ...
    (comp.os.linux.development.system)
  • Binding a process to a specific processor.
    ... here's where it gets sticky. ... We' write custom software to talk to our ... at random (dual processors). ... dual processor system, ...
    (comp.os.linux.hardware)
  • RE: Asf fastforward performance
    ... I use "REAL" dual processors each has hyper threading ... and the single processor is 3.0 GHz and has hyperthreading ... 1-when i use single processor system i get 2X very smooth ... my 3x requirement and does try its best to give me a smooth ...
    (microsoft.public.win32.programmer.directx.video)