mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@osdl.org>
To: Roland McGrath <roland@redhat.com>
Cc: Ulrich Drepper <drepper@redhat.com>,
	Christoph Lameter <clameter@sgi.com>,
	akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/7] cpu-timers: high-resolution CPU clocks for POSIX clock_* syscalls
Date: Tue, 14 Dec 2004 14:18:13 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0412141410150.3279@ppc970.osdl.org> (raw)
In-Reply-To: <200412142150.iBELoJc0011582@magilla.sf.frob.com>



On Tue, 14 Dec 2004, Roland McGrath wrote:
>
> I believe Christoph may have been referring exclusively to the per-process
> clocks, not the per-thread clocks.

Please do not confuse things.

There still are no such things as "threads" vs "processes" as far as the 
kernel is concerned.

They are all the same thing, and they are all threads or processes or
whatever you want to call them. I've tried to call them "contexts of
execution" just to clarify the fact that they are _not_ threads of
processes. And they all have a unified ID space.

They just happen to share different things. We should try to avoid at all
cost to take on stupidities from legacy systems. We've got a unified
process/thread/whatever space, and that's a good thing.

Yes, when you share the signal state (and you have to share the VM and
signal handlers to do so), you end up looking like a pthreads "process".
But dammit, people should NOT think that that is all that special from a
kernel standpoint.

And no kernel interface should really care about some pthreads rules. The 
interfaces should work with old linux-threads, and with pure "clone()" 
things too.

Of course, in this case, it's doubtful whether we want to expose non-local
clocks to anybody else, making the whole point pretty moot. I'd vote for
not exposing them any more than necessary (ie the current incidental "ps"  
interface is quite enough), at least until somebody can come up with a
very powerful example of why exposing them is a good idea.

		Linus

  parent reply	other threads:[~2004-12-14 22:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-14  3:55 Roland McGrath
2004-12-14 18:36 ` Christoph Lameter
2004-12-14 21:38   ` Ulrich Drepper
2004-12-14 21:50     ` Roland McGrath
2004-12-14 21:58       ` Christoph Lameter
2004-12-14 22:18       ` Linus Torvalds [this message]
2004-12-14 22:26         ` Ulrich Drepper
2004-12-14 22:44           ` Linus Torvalds
2004-12-14 23:08             ` Roland McGrath
2004-12-14 22:14   ` Roland McGrath
2004-12-14 22:23     ` Christoph Lameter
2004-12-15 18:43     ` Christoph Lameter
     [not found] <200412140355.iBE3t7KL008040@magilla.sf.frob.com.suse.lists.linux.kernel>
2004-12-14 19:07 ` Andi Kleen
2004-12-14 22:44   ` Ulrich Drepper
2004-12-15  4:51     ` Andi Kleen

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=Pine.LNX.4.58.0412141410150.3279@ppc970.osdl.org \
    --to=torvalds@osdl.org \
    --cc=akpm@osdl.org \
    --cc=clameter@sgi.com \
    --cc=drepper@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®