Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - setting cpu affinity based on thread id?: Page 1 of 2 (2 Items)
   
setting cpu affinity based on thread id?  
Hello,

QNX provides the following function to set the cpu affinity for the 
_calling_ thread:

ThreadCtl(_NTO_TCTL_RUNMASK_GET_AND_SET_INHERIT, data)

Is there also a function to set the cpu affinity for a given thread (not 
necessarily the calling thread) based on a thread id? In other words, is 
there a function that provides similar functionality as the Linux 
function sched_setaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *mask)?

Christian


-- 
Christian Haack, Senior Software Engineer   Tel: +49-721-663 968-34

aicas GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-0

USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim
Geschäftsführer: Dr. James J. Hunt