title: Linux - threads and process scheduling priorities
body: <p>if we create pthreads (pthread_create) or processes (fork) with default scheduling policies on linux, will the scheduler treats the processes and threads with same priority while scheduling them? </p>
  
  <p>let us say there is process P1 with one thread
  and process P2 with 2 threads T1 T2</p>
  
  <p>lets say there is only one core..will the scheduling be
  P1 T1 P1 T2 P1 T1 P1 T2</p>
  
  <p>or</p>
  
  <p>P1 T1 T2 P1 T1 T2</p>