[lkml]   [1996]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: newly released clone() based pthreads package
> There are probably some changes that could be made to the kernel to
> lower the overhead of switching between two threads of the same
> process. The one that I can think of is sharing of all thread invariant

Not a lot.

> task_struct data. When the clone() ( do_fork() ) routine is called

It does. Why do you think it has pointers to the mm struct. A thread->thread
switch with the VM shared is very fast. The kernel doesnt need to do any
page table work and the ix86 optimises a reload of the page table registers
on task switch if the new and old tables are the same.


 \ /
  Last update: 2005-03-22 13:37    [W:0.097 / U:0.740 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site