3 ms·
pthreads is a user-space API, and has nothing to do with the kernel. It is possible to implement pthreads entirely in user space (though somewhat horrific to do
by PaulDavisThe1st 2y ago
pthreads is a user-space API, and has nothing to do with the kernel. It is possible to implement pthreads entirely in user space (though somewhat horrific to do so). Linux does not have kernel threads in order to support pthreads (though they help).
Anyway, I see your point about the bleed between the different semantics of a task_t in the linux kernel.
- epcoa 2y ago> Linux does not have kernel threads in order to support pthreads Yes, what I was alluding to somewhat cryptically was things like tgids and the related tkill/tgkill syscalls that as far I am aware were added with the implementation of 1:1 pthread support in mind.