lkml.org 
[lkml]   [1999]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectQuestions about SMP support on Linux?
Hi Guys,

I am new to SMP programming, so I have some questions about SMP
support under linux, both in the kernel and for user land processes.
Specifically I am wondering if there is the ability to implement the
following functions for user land apps:

getCPUs() - returns the number of CPUs in system.

setCPU() - ensures that all subsequently executed
code will run on a given CPU - for the current
thread.

This would allow user land apps to ensure code runs on a single
processor for a short period of time. Is that possible at all?

I assume something like this must be possible in the Linux kernel,
and if so what are the functions used to do this?

Please reply via email to keep the volume down on this list.

Regards,

+---------------------------------------------------------------+
| SciTech Software - Building Truly Plug'n'Play Software! |
+---------------------------------------------------------------+
| Kendall Bennett | Email: KendallB@scitechsoft.com |
| Director of Engineering | Phone: (530) 894 8400 |
| SciTech Software, Inc. | Fax : (530) 894 9069 |
| 505 Wall Street | ftp : ftp.scitechsoft.com |
| Chico, CA 95928, USA | www : http://www.scitechsoft.com |
+---------------------------------------------------------------+


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:1.224 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site