[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[rtl] processor affinity?
I am trying to determine if RT Linux with SMP is appropriate for a
project I am working on. I have an Intel N440BX dual-Pentium II
server board, which I understand is now supported by RT Linux and
SMP. However, I want to run two compute-intensive threads and I need
to make sure that each runs on a separate processor. The RTL docs
say there are no calls to ensure processor affinity.
Once created, is there a way for a thread to determine which
processor it is running on? I am thinking that I could create a
bunch of threads (or processes) until I get two on different CPUs,
then kill the ones I don't need. Would this work? Are there better
ways?
Thanks.
======================================================================
Bill Goolsby, MSEE, Senior Associate
Emory University ^___^
Dept. of Cell Biology /_' '_> _ /\ /**
1648 Pierce Drive / ^ /_\ / \ / ** **
Atlanta, GA 30322 USA / / \/ / **
404-727-6261, FAX 404-727-6256
Email: bill@cellbio.emory.edu
--- [rtl] ---
For more information on Real-Time Linux see:
http://www.rtlinux.org/