Re: Newbie questions



>No, pthreads are not userspace threads in Linux. Linux doesn't use
>userspace threads because its context switches are fast enough to do it
>in kernel.

they don't use user-space context switching, its true.

however, they are managed by user-space code (hence the silent, hidden
"manager thread" started by pthreads.

in truth, the use of the clone(2) call makes linuxthreads a little bit
of a hybrid system. but they are closer to user-space threads IMHO.

--p




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]