LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Multi threading (https://www.linuxquestions.org/questions/linux-newbie-8/multi-threading-693596/)

greplinux 12-29-2008 03:24 AM

Multi threading
 
Hi All,

Is it possible to assign a thread(pthread)to a specific processor in a multi core system? If yes how can we achieve it?

Thanks,

lepht 12-29-2008 01:52 PM

seems like you can only do it if you hack it up. at least a while ago they were having to, doesn't say if they ever made it work:

https://kerneltrap.org/mailarchive/f.../216158/thread

alexhwest 12-29-2008 04:25 PM

You can do it for a process or newly executed process, but specifically for pthreads, not sure.

I have done it this way, but only for specific processes:
http://www.cyberciti.biz/tips/settin...r-process.html


All times are GMT -5. The time now is 05:10 AM.