title: How this pthread actually works?
body: <p>I am actually  on my project on compiler with SMP, and want to code with pthreads and heard about many parallel things open mpi and so on, So to start with how this thread is allocated to core while calling pthread,Is there any way to give threads  to different cores by pthreads?</p>