I'm running a program on FC4 on dual core machine, two pthreads will be generated from the program, I wish to bind each pthread to each logical processor using sched_setaffinity(). But I noticed that this function will bind the process to the logical processor. But in NPTL, all members of a thread groups share the same PID. So is it possible to have different pid value represent a distinct pthread?