title: if I do sched_setaffinity in a process, do the threads spawned by it get affected
body: <p>If I do this : CreateThreads, setsched_affinity to CPU 0, then will all the threads also have affinity to CPU 0
  If instead I reverse the sequence of action i.e. set_schedaffinity first and then create threads , will the threads have affinity</p>
  
  <p>I am creating threads using pthreads library. Thanks for any answers</p>