Can I boot the kernel at the kernel level in Linux v2.6 kernel and is there a way to find out the thread level in my thread?

Can I create a kernel thread using the pthread_create () function with the PTHREAD_SCOPE_PROCESS option in Linux 2.6 kernel?

And how can I know which threading level my thread is at? Is there any function for this?

+2


a source to share


1 answer


PTHREAD_SCOPE_PROCESS

not supported on Linux, but the pthread scope has nothing to do with whether you get a kernel level thread or not.



Modern Linux pthreads implementation uses a 1: 1 mapping between pthreads and kernel threads, so you will always get a kernel-level thread with pthread_create()

.

+4


a source







All Articles