Re: [LIP] Identifying the processor executing specific thread

Arun Sharma <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
On Thu, Nov 06, 2003 at 03:23:15AM -0500, tank, amit wrote:
> 
> Can I override it, and have a condition
> where out of my 8 processors, When ever
> I start the build process (make), it will
> get 100% exclusive dedication of 4 processors.

task->cpus_allowed controls this. You may be able to set this via
sched_setaffinity() system call.

	-Arun


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.