how are pthreads on linux seen by scheduler

后端 未结 3 2029
夕颜
夕颜 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:48

    For modern Linux (NPTL pthread implementation), the scheduler schedules threads, a thread is considered a "Light-weight process". pthread_create is implemented in terms of the clone system call.

提交回复
热议问题