tags:

views:

72

answers:

1

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

And how can I know which thread-level is my thread on? Are there any function for that?

+3  A: 

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

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

caf