Linux - threads and process scheduling priorities

Viewed 13882

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?

let us say there is process P1 with one thread and process P2 with 2 threads T1 T2

lets say there is only one core..will the scheduling be P1 T1 P1 T2 P1 T1 P1 T2

or

P1 T1 T2 P1 T1 T2

2 Answers
Related