User/Kernel Level Threads

From: Anne (anne_dolly00_at_yahoo.co.uk)
Date: 02/25/04


Date: 25 Feb 2004 13:11:47 -0800

Hello,
 
I am confused about User level Thread /Kernel Level Threads. Could you
please look at my following questions? Many thanks for your time
 
0- With Kernel Level thread, will the thread run on Kernel mode?
that's what i have read, thread (user) code so can run on the kernel
space, that's look very dangerous for me!
does thread kernel mode means really that the threads code is mapped
on the kernel space?

1- Java for instance provides a package to manage Threads at the user
level. If instead a user wants to implement threads at the kernel
level which package should he/she use when working on

1- Windows NT

2- Linux

 

2- If the user writes multithreaded code using user level library,
will these threads be automatically mapped (one to one or many to
many) to kernel level threads? Or it is up to the user to instruct
this, if yes how?

3- If kernel level threads are supported, will the operating
system schedule processes first and then threads or schedule directly
threads. If the latter case is assumed some processes may stave and
others substantially favoured!

4- When threads are created, each thread ll be associated with a
dedicated stack within the same process's address space. What
mechanism and policy is followed to protect each thread stack from the
other

 

Many thanks for your help



Relevant Pages

  • User/Kernel Level Threads
    ... I am confused about User level Thread /Kernel Level Threads. ... 0- With Kernel Level thread, will the thread run on Kernel mode? ... system schedule processes first and then threads or schedule directly ... dedicated stack within the same process's address space. ...
    (comp.os.linux.misc)
  • User/Kernel Level Threads
    ... I am confused about User level Thread /Kernel Level Threads. ... 0- With Kernel Level thread, will the thread run on Kernel mode? ... system schedule processes first and then threads or schedule directly ... dedicated stack within the same process's address space. ...
    (comp.unix.tru64)
  • User/Kernel Level Threads
    ... I am confused about User level Thread /Kernel Level Threads. ... 0- With Kernel Level thread, will the thread run on Kernel mode? ... system schedule processes first and then threads or schedule directly ... dedicated stack within the same process's address space. ...
    (comp.programming)
  • Re: User/Kernel Level Threads
    ... Since we are in the TRU64 newsgroup, ... >0- With Kernel Level thread, will the thread run on Kernel mode? ... No, the user level threads will run in user space, independent of the ... >dedicated stack within the same process's address space. ...
    (comp.unix.tru64)