Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX CPU affinity: (1 Item)
   
QNX CPU affinity  
Hi folks,

I got a question regarding how to implement CPY affinity in QNX. I want to port some Linux code to QNX, and in my Linux 
code I use pthread_setaffinity_np(), which sets some given cpu_set_t to a specific thread, not the calling thread. 
Essentially, we create a thread from the calling threa,d and then we assign that newly created thread some specific CPU 
affinity.

I can see that in QNX we can use threadCtl() for the calling thread. Is there any way to do it for a specific thread, 
given its ID/name, and not just from the calling thread?

Thanks!
Victor.