Skip to contentSkip to conversation

1:1 M:N threading

DISCUSSION Breno 4 participants 5 messages Sep 14, 2003 – Sep 16, 2003

lore
Share & tools
lore

Breno

author
#0 lore raw

Hi.

What kind of threading kernel 2.4 and 2.6 do ? 1:1 or M:N ?

thanks
Breno

#1 lore raw
Quoted 5 lines · Breno

Hi.

What kind of threading kernel 2.4 and 2.6 do ? 1:1 or M:N ?

Quoted 11 lines

thanks
Breno

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Hello,

For 2.6, the default is NGPT (see http://www-124.ibm.com/developerworks/oss/pthreads/) which is 1:1.

Regards
Rémi

#2 lore raw
In reply to Breno
Quoted 3 lines · Breno

Hi.

What kind of threading kernel 2.4 and 2.6 do ? 1:1 or M:N ?

The kernel doesn't impose a specific model although its certainly strongly oriented to 1:1 threading models by simply making the kernel threading/locking so efficient the M:N stuff isnt worth the overhead

#3 lore raw
In reply to Breno
Quoted 1 line · Breno

What kind of threading kernel 2.4 and 2.6 do ? 1:1 or M:N ?

Both do 1:1.

But nothing stops you from running an M:1 or M:N threading library in user-space on top of the kernel abstraction.

Robert Love

author
#4 lore raw

Memory allocation

Hi,

When i use kmem_cache_alloc() to create a vma and return addr of this vma , the pages have already been allocated and mapped ? or i must use mk_pte/set_pte to map the page to my vma ?

att
Breno