Friday, 13 September 2013

Linux Threads and process - CPU affinity

Linux Threads and process - CPU affinity

I have few queries related to threads and Process scheduling.
When my process goes into sleep and wakes back, is it always that it will
be scheduled on the same CPU that it got scheduled before?
When i create a thread from the process, Will it also be executed on the
same CPU always? Even if other CPU's are free and sleeping.
I would like to know the mechanism in Linux in specific. Also i am
creating the threads through pthread library. I am facing a random hangup
issue which is always not reproducible. Need this information to proceed
in the right direction.

No comments:

Post a Comment