Hi all,
I have a question regarding using pthreads on a multicore platform: If I launch n threads, can I be guaranteed that the kernel will schedule them to n different cores? If it helps, the system that I will be using has NPTL 2.5 installed.
I am working on a stream processing application and I want some of the cores of my platform to be the workers (and stay the workers). I do not want to kill and re-launch these worker threads because their work will continue to be the same throughout the duration of the program (the data that they operate over however, will change).
I understand that with NPTL, you can configure CPU affinities---does this mean it is possible to statically assign a thread to a particular core?
Thank you all for your help. The resources on multithread programming over multiple cores appear to be very scant. It feels like I'm going into the wild west with some of these questions.
Manish
Bookmarks