Re: Threads within the kernel
Re: Threads within the kernel
- Subject: Re: Threads within the kernel
- From: Quinn <email@hidden>
- Date: Tue, 12 Dec 2006 09:56:33 +0000
At 19:32 -0500 11/12/06, Curtis Jones wrote:
Anyway ... can anyone articulate the difference?
This is just a matter of thread priority. The kernel thread that's
used to implement bsd_timeout has a high, fixed priority. And, on a
single CPU Mac OS X system, if a thread of priority X is available to
run, threads of a priority less than X do not run at all. If you're
doing CPU intensive stuff, you have to make sure than you run it in a
low priority thread.
User space threads, by default, are what we call "time shared". That
is, as the thread consumes more and more CPU time, the kernel
depresses its priority to give other threads a chance. Kernel
threads, by default, are of fixed priority.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden