how are pthreads on linux seen by scheduler

后端 未结 3 2046
夕颜
夕颜 2021-01-06 00:09

I\'ve a question regarding pthread implementation on Linux.

Suppose a process has 5 threads. Now how does the scheduler sees these threads (or doesnt see at all). e.

3条回答
  •  难免孤独
    2021-01-06 00:39

    Linux schedules every thread as if it is a Process with scope as PTHREAD_SCOPE_SYSTEM. The nptl implementation can utilize multiple CPUs.

提交回复
热议问题