From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 5 21:19:35 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 C133E106564A for ; Tue, 5 Oct 2010 21:19:35 +0000 (UTC) (envelope-from eknath.iyer@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 59AA18FC16 for ; Tue, 5 Oct 2010 21:19:34 +0000 (UTC) Received: by wwb24 with SMTP id 24so70314wwb.31 for ; Tue, 05 Oct 2010 14:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=OCD2u70yD3hoHmNiSRXu+m932T1T19dyRZAGQ4XOqEo=; b=j4UdToAfYfpl2ymehZoiYXKMGFH+c+NdBZC3TYeoJGooAP/0jZG43o6xzWa01LWIuO vz93QuNl9Z3z4xJxGNV4JzeSM5P3O6dUMuMuQxm0PrWSkrxuE5Xp9he06xnMGlCyihQ5 iXY0vKDtNQlcJGWhZ3Swdy/bIcpzMFGNJzwQM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Y9UlqL9LATguyddLYOs72sphxsKD5GpNIDufwfqUE0Z0TlWRIpQf/Msl8O5bNrKyEK Z6xcLlBkGjkzj5B9m76U+Rc2/buDZ3PZg7HBOVhotlbS9SCt3kf91wlMY6/SJr3LQ1KE 2G+GJq151Opd9npfNNKuo6X4jqgPjiv2QhFdo= MIME-Version: 1.0 Received: by 10.216.7.210 with SMTP id 60mr1603614wep.30.1286313573538; Tue, 05 Oct 2010 14:19:33 -0700 (PDT) Received: by 10.216.26.65 with HTTP; Tue, 5 Oct 2010 14:19:33 -0700 (PDT) Date: Tue, 5 Oct 2010 17:19:33 -0400 Message-ID: From: Eknath Venkataramani To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 21:19:35 -0000 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? 2. Does it recieve the priority from the KSEG? -- Eknath Venkataramani