From: andi.shyti@gmail.com (Andi)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Current Thread mapping
Date: Sun, 15 Jan 2012 11:32:02 +0100 [thread overview]
Message-ID: <4F12AB22.9040609@gmail.com> (raw)
In-Reply-To: <CAFtwHej=L26e3LRt+_G_vRkdA20qFNZAmcp6swg4kxNrtCkL4Q@mail.gmail.com>
Hi Santi,
I'm no sure that I've fully understood the question. What do you mean
about mapping?
If you mean kernel/user memory memory mapping, in the kernel there is
not a mapping of the memory user task in the kernel.
If with mapping you mean the relation between userspace task and
scheduling entries, then the relation is 1:1.
Remember that the kernel doesn't really know that there is a difference
between process and threads, it's why they are called tasks, threads,
process at the same way. The only difference is the way you create it in
userspace. As soon as you create it in your userspace process, the
kernel links it to a kernel structure called 'struct task_struct'
(linux/sched.h) which contains many descriptions on the thread/process
you have just created.
1 userpace thread:1 struct task_struct, this is what I mean with 1:1 mapping
Andi
On 01/15/2012 10:32 AM, SaNtosh kuLkarni wrote:
> HI everyone just wanted to know whats the current implementation of
> user|| kernel space thread mapping ...is it 1:1 or does it depend on
> the needs ? For example say if i have 12k user space thread running
> ,,,how many kernel space thread would be managing them... as far as i
> know there is 1:1 mappin
>
> Thanks
>
> --
> *Regards,
> Santi*
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120115/ab4d817d/attachment.html
next prev parent reply other threads:[~2012-01-15 10:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-15 9:32 Current Thread mapping SaNtosh kuLkarni
2012-01-15 9:56 ` rohan puri
2012-01-15 10:32 ` Andi [this message]
2012-01-15 13:37 ` SaNtosh kuLkarni
2012-01-16 5:00 ` Mulyadi Santosa
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=4F12AB22.9040609@gmail.com \
--to=andi.shyti@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).