mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Hua Zhong" <hzhong@cisco.com>
To: "'Linux Kernel Mailing List'" <linux-kernel@vger.kernel.org>
Subject: THREAD_GROUP and linux thread
Date: Mon, 8 Sep 2003 14:01:45 -0700	[thread overview]
Message-ID: <127101c3764c$6990df80$ca41cb3f@amer.cisco.com> (raw)

Hi:
 
I am making some kernel changes to keep track of threads. Basically I
want to maintain a linked list of all threads.
 
The linux thread library on my system doesn't make use of the
CLONE_THREAD flag, so the thread_group list is not being used. I can
just add a new field in task_struct and maintain the list in
fork.c/exec.c/exit.c exactly as what the kernel does to the thread_group
list, but I am just wondering if I could just change the kernel to treat
CLONE_VM the same way as CLONE_THREAD which is a much simpler change.
 
So my questions are:
 
1. Is it safe to do so? [ in other word, is it a requirement to use
CLONE_VM together with CLONE_THREAD ]
2. Which version of pthread uses the CLONE_THREAD flag?
 
I couldn't find the documentation about CLONE_THREAD usages, so your
reply is very much appreciated.
 
Hua


             reply	other threads:[~2003-09-08 21:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-08 21:01 Hua Zhong [this message]
2003-09-08 21:12 ` Jamie Lokier
2003-09-08 21:24   ` Hua Zhong

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='127101c3764c$6990df80$ca41cb3f@amer.cisco.com' \
    --to=hzhong@cisco.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®