From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 5 23:00:05 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 372AA106566C for ; Tue, 5 Oct 2010 23:00:05 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from out-0.mx.aerioconnect.net (out-0-19.mx.aerioconnect.net [216.240.47.79]) by mx1.freebsd.org (Postfix) with ESMTP id 116368FC1A for ; Tue, 5 Oct 2010 23:00:04 +0000 (UTC) Received: from idiom.com (postfix@mx0.idiom.com [216.240.32.160]) by out-0.mx.aerioconnect.net (8.13.8/8.13.8) with ESMTP id o95Mdmdl009566; Tue, 5 Oct 2010 15:39:48 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 406722D6015; Tue, 5 Oct 2010 15:39:47 -0700 (PDT) Message-ID: <4CABA963.40709@freebsd.org> Date: Tue, 05 Oct 2010 15:40:35 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Eknath Venkataramani References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 216.240.47.51 Cc: freebsd-hackers@freebsd.org Subject: Re: Thread priorities X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 23:00:05 -0000 On 10/5/10 2:19 PM, Eknath Venkataramani wrote: > In kern_switch.c, > > It is said that, Free threads are 'preassigned' to the KSEs. and that the > KSEs derive their priority from threads and are put on the run queue. > 1. Where do the threads receive their priorities from? from the process they are assigned to. > 2. Does it recieve the priority from the KSEG? well, it got some modification of it's priority due to KSEG behaviour. (or at least that was the plan) this must be very old code because ksegs were removed some time ago. please