Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-25-2009, 07:41 PM   #1
LQ Newbie
Registered: Oct 2004
Posts: 14

Rep: Reputation: 0
Set CPU mask on thread level

Hi! All: Not sure if this has been asked before.

Is it possible to set CPU mask on thread level? Essentially, something like sched_setaffinity(),
but not on process level.

I am asking this question because, I need a high-precision performance measurement tool. Thinking
of using TSC, but TSC is not synced among different CPUs, and I certainly don't want to limit my
entire process into just one CPU. If I could just fix one of my thread into one specific CPU that
would solve the issue.

Any suggestions will be great! Thanks!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find - battery life, CPU Usage,Wireless Signal Level , Congestion Level md_imranullah Programming 2 05-20-2008 08:45 PM
CPU binding - How to modify the CPU affinity mask? Thaidog Linux - General 1 03-15-2008 05:54 PM
set your default run level so you will boot to a default run level - vga console Adam555 Linux - Newbie 1 01-21-2008 04:55 PM
thread level signals arunachalam Linux - Software 2 09-02-2007 09:51 AM
how to check cpu level? naijaguy Linux - Newbie 7 02-05-2005 02:20 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration