All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Riesen <raa.lkml@gmail.com>
To: shappen@gmail.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: threads questions
Date: Mon, 5 Sep 2005 00:29:43 +0200	[thread overview]
Message-ID: <81b0412b0509041529524bca1f@mail.gmail.com> (raw)
In-Reply-To: <d2a0e906050903212678ad88a1@mail.gmail.com>

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

  reply	other threads:[~2005-09-04 22:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-04  4:26 threads questions Petter Shappen
2005-09-04 22:29 ` Alex Riesen [this message]
2005-09-04 22:57   ` 2.6, devfs, SMP, SATA Howard Chu
2005-09-05 12:56     ` Pekka Enberg
2005-09-06  4:34       ` Howard Chu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81b0412b0509041529524bca1f@mail.gmail.com \
    --to=raa.lkml@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shappen@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.