lkml.org 
[lkml]   [2005]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: threads questions
On 9/4/05, Petter Shappen <shappen@gmail.com> wrote:
> As we all know the kernel maintain a data struct for the
> process(PCB),and also for the thread.Because of the latter's smaller
> than the former's,thread switching is faster than the process

not really. They just share some bits (like: address space, file
table, signal handlers, etc),
but aside from that - normal processes.

> switching.And from the book,I read that threads shares some data

What exactly is this book you're reading?

> information of the process,so my question is that when the threads of
> different processes have to switch,and the threads also use some data
> of the processes,will the process switch before the threads?The speed
> of these threads switching is slower than normal,is that true ?

Why?

> How can the thread's advantage over process reflect?

It usually don't. Not noticably, in any case
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-09-05 00:40    [W:0.046 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site