Thanks Andi ,,Rohan,,,,for the quick reply<br><br>ya you are rite ..i was asking bout kernel side scheduling user space threads and how they handle them....<br><br><div class="gmail_quote">On Sun, Jan 15, 2012 at 4:02 PM, Andi <span dir="ltr"><<a href="mailto:andi.shyti@gmail.com">andi.shyti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div bgcolor="#ffffff" text="#000000">
Hi Santi,<br>
<br>
I'm no sure that I've fully understood the question. What do you
mean about mapping?<br>
If you mean kernel/user memory memory mapping, in the kernel there
is not a mapping of the memory user task in the kernel.<br>
If with mapping you mean the relation between userspace task and
scheduling entries, then the relation is 1:1.<br>
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.<br>
1 userpace thread:1 struct task_struct, this is what I mean with 1:1
mapping<br>
<br>
Andi<br>
<br>
On 01/15/2012 10:32 AM, SaNtosh kuLkarni wrote:
<blockquote type="cite">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
<div>
<br>
</div>
<div>Thanks<span class="HOEnZb"><font color="#888888"><br clear="all">
<div><br>
</div>
-- <br>
<b style="color:rgb(102,102,204)">Regards,<br>
Santi</b><br>
</font></span></div><span class="HOEnZb"><font color="#888888">
<pre><fieldset></fieldset>
_______________________________________________
Kernelnewbies mailing list
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a>
</pre>
</font></span></blockquote>
<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br><b style="color:rgb(102,102,204)">Regards,<br>Santosh Kulkarni</b><br><br>