From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5392,b2d3b08d2996d5d9,start X-Google-Attributes: gidf5392,public X-Google-Thread: fa528,b2d3b08d2996d5d9,start X-Google-Attributes: gidfa528,public X-Google-Thread: 108717,b2d3b08d2996d5d9,start X-Google-Attributes: gid108717,public X-Google-Thread: 1103af,b2d3b08d2996d5d9,start X-Google-Attributes: gid1103af,public X-Google-ArrivalTime: 2004-02-25 13:11:48 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: anne_dolly00@yahoo.co.uk (Anne) Newsgroups: comp.unix.tru64,comp.os.linux.misc,comp.os.linux.development.system,comp.programming Subject: User/Kernel Level Threads Date: 25 Feb 2004 13:11:47 -0800 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 165.194.27.52 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1077743508 32275 127.0.0.1 (25 Feb 2004 21:11:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 25 Feb 2004 21:11:48 +0000 (UTC) Xref: archiver1.google.com comp.unix.tru64:11223 comp.os.linux.misc:17307 comp.os.linux.development.system:2876 comp.programming:12375 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