Thread or Process?
Thread or Process?
Posted Jul 7, 2021 10:17 UTC (Wed) by immibis (subscriber, #105511)In reply to: Thread or Process? by glenn
Parent article: Core scheduling lands in 5.14
> The type argument controls how widely spread this assignment is; PIDTYPE_PID only changes the identified process, for example, while PIDTYPE_TGID assigns the cookie to the entire thread group. The cookie argument must be NULL.
Note that what the kernel calls a "process" or "task" is what us user-space plebs would call a "thread", and what they call a "thread group" is what we would call a "process".
